Store an object in the cache.
public set ( string $key, string $data, integer $lifetime = null ) | ||
$key | string | Object ID used as the caching key. |
$data | string | Data to store in the cache. |
$lifetime | integer | 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. |