Methods summary
public
|
#
__construct( string $namespace = 'default' )
Connect to memcache.
Parameters
- $namespace
string $namespace The namespace for this cache to write to - note, namespaces of the
same name are shared!
Throws
Overrides
|
public
|
#
setDefaultExpiry( integer $expires = 0 )
Set the default expiry.
Parameters
- $expires
integer $expires The lifetime as a unix timestamp or time from now. Defaults forever.
|
public
boolean
|
#
save( string $key, string $data, integer $expires = null )
Saves a name and value to the cache
Saves a name and value to the cache
Parameters
- $key
string $key Name
- $data
string $data Value
- $expires
integer $expires Expires (in seconds)
Returns
boolean
|
public
mixed
|
#
load( string $key, integer $offset = 0, integer $limit = null )
Retrieves data.
Parameters
- $key
string $key Name of data to retrieve
- $offset
integer $offset Offset
- $limit
integer $limit Limit
Returns
mixed
|
public
boolean
|
#
delete( string $key )
Delete data
Parameters
- $key
string $key Name of data
Returns
boolean
|
public
true
|
#
clear( )
Clears the entire cache?
Returns
true
|