$interface
$interface :\Predis\Client
The interface Local Redis client interface storage
Read(string $cache_file,boolean $raw = false): mixed
Read cache file from storage Get the values from cache file from storage, do deserialize when not raw
string | $cache_file | Relative file path |
boolean | $raw | When set to true, return the value direct without deserialize. |
The stored values
Write(string $cache_file,mixed $data,boolean $raw = false,integer $ttl = -1): mixed
Write cache file to storage Set the values of cache file to storage, do serialize when not raw
string | $cache_file | Relative file path |
mixed | $data | The data to store |
boolean | $raw | When set to true, return the value direct without deserialize. |
integer | $ttl | Optional time to live. |
The stored values