$_params
$_params : array
Cache parameters.
This class provides the API interface to the cache storage drivers.
__construct(\Horde_Cache_Storage $storage, array $params = array())
Constructor.
| \Horde_Cache_Storage | $storage | The storage object. |
| array | $params | Parameter array:
- compress: (boolean) Compress data (if possible)?
DEFAULT: false
- lifetime: (integer) Lifetime of data, in seconds.
DEFAULT: 86400 seconds
- logger: (Horde_Log_Logger) Log object to use for log/debug messages.
|
set(string $key, string $data, integer $lifetime = null)
Store an object in the cache.
| string | $key | Object ID used as the caching key. |
| string | $data | Data to store in the cache. |
| integer | $lifetime | Object lifetime - i.e. the time before the data becomes available for garbage collection, in seconds. If null use the default Horde GC time. If 0 will not be GC'd. |