HasConnection()
HasConnection(): boolean
Check if is connected Connects to memcache handler and returns connection status.
Returns
boolean —Connection possible
Read(string $cache_file,boolean $raw = false,boolean $honor_ttl = 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. |
boolean | $honor_ttl | Load with ttl automatic |
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