Method | Description | |
---|---|---|
__construct ( string $namespace = 'default', |
Constructor | |
clear ( ) : boolean | Clears all values in the namespace of this cache | |
delete ( string $key ) : boolean | Delete data | |
load ( string $key, integer $unused1, integer $unused2 = null ) : mixed | Retrieves data. | |
save ( string $key, string $data, integer $ttl = null ) : boolean | Saves a name and value to the cache | |
setDefaultExpiry ( integer $ttl ) : void | Set the default TTL. | |
setNamespace ( string $namespace = "default" ) : void | Set the namespace of this cache. |
Method | Description | |
---|---|---|
makeMemcacheKey ( string $key ) : string | Combine a key with the namespace. |
public __construct ( string $namespace = 'default', |
||
$namespace | string | The namespace for this cache to write to |
$pool | The cache pool to use. Default is memcache. | |
$ttl | integer | The TTL in seconds. Default is from $CONFIG->memcache_expires. |
public setDefaultExpiry ( integer $ttl ) : void | ||
$ttl | integer | The TTL in seconds from now. Default is no expiration. |
return | void |
public setNamespace ( string $namespace = "default" ) : void | ||
$namespace | string | Namespace for cache |
return | void |