$_logger
$_logger : \Horde_Log_Logger
Logger.
Cache storage in a SQL databsae.
The table structure for the cache is as follows:
CREATE TABLE horde_cache (
cache_id VARCHAR(32) NOT NULL,
cache_timestamp BIGINT NOT NULL,
cache_data LONGBLOB,
(Or on PostgreSQL:)
cache_data TEXT,
(Or on some other DBMS systems:)
cache_data IMAGE,
PRIMARY KEY (cache_id)
);
set(string $key, mixed $data, integer $lifetime)
Store an object in the cache.
| string | $key | Object ID used as the caching key. |
| mixed | $data | Data to store in the cache. |
| integer | $lifetime | Object lifetime - i.e. the time before the data becomes available for garbage collection. If 0 will not be GC'd. |