PHP Class lithium\storage\cache\strategy\Json

Inheritance: extends lithium\core\Object
Show file Open project: unionofrad/lithium

Public Methods

Method Description
read ( string $data ) : mixed Read strategy method.
write ( mixed $data ) : string Write strategy method.

Method Details

read() public method

Decodes JSON data and returns an array or object structure.
public read ( string $data ) : mixed
$data string Serialized data.
return mixed Result of unserialization.

write() public method

Encodes the passed data from an array to JSON format.
public write ( mixed $data ) : string
$data mixed The data to be encoded.
return string The encoded data.