Elgg
Version 1.11
|
Public Member Functions | |
__construct ($namespace='default') | |
Connect to memcache. More... | |
setDefaultExpiry ($expires=0) | |
Set the default expiry. More... | |
save ($key, $data, $expires=null) | |
Saves a name and value to the cache. More... | |
load ($key, $offset=0, $limit=null) | |
Retrieves data. More... | |
delete ($key) | |
Delete data. More... | |
clear () | |
Clears the entire cache? More... | |
![]() | |
setNamespace ($namespace="default") | |
Set the namespace of this cache. More... | |
getNamespace () | |
Get the namespace currently defined. More... | |
![]() | |
__construct () | |
Set the constructor. More... | |
set_variable ($variable, $value) | |
Set a cache variable. More... | |
setVariable ($variable, $value) | |
Set a cache variable. More... | |
get_variable ($variable) | |
Get variables for this cache. More... | |
getVariable ($variable) | |
Get variables for this cache. More... | |
__get ($key) | |
Class member get overloading, returning key using $this->load defaults. More... | |
__set ($key, $value) | |
Class member set overloading, setting a key using $this->save defaults. More... | |
__isset ($key) | |
Supporting isset, using $this->load() with default values. More... | |
__unset ($key) | |
Supporting unsetting of magic attributes. More... | |
save ($key, $data) | |
Save data in a cache. More... | |
add ($key, $data) | |
Add a key only if it doesn't already exist. More... | |
offsetSet ($key, $value) | |
Assigns a value for the specified key. More... | |
offsetGet ($key) | |
Get the value for specified key. More... | |
offsetUnset ($key) | |
Unsets a key. More... | |
offsetExists ($key) | |
Does key exist. More... | |
Definition at line 8 of file ElggMemcache.php.
ElggMemcache::__construct | ( | $namespace = 'default' | ) |
Connect to memcache.
string | $namespace | The namespace for this cache to write to - note, namespaces of the same name are shared! |
ConfigurationException |
Definition at line 45 of file ElggMemcache.php.
ElggMemcache::clear | ( | ) |
Clears the entire cache?
Reimplemented from ElggCache.
Definition at line 209 of file ElggMemcache.php.
ElggMemcache::delete | ( | $key | ) |
Delete data.
string | $key | Name of data |
Reimplemented from ElggCache.
Definition at line 196 of file ElggMemcache.php.
ElggMemcache::load | ( | $key, | |
$offset = 0 , |
|||
$limit = null |
|||
) |
Retrieves data.
string | $key | Name of data to retrieve |
int | $offset | Offset |
int | $limit | Limit |
Reimplemented from ElggCache.
Definition at line 176 of file ElggMemcache.php.
ElggMemcache::save | ( | $key, | |
$data, | |||
$expires = null |
|||
) |
Saves a name and value to the cache.
string | $key | Name |
string | $data | Value |
integer | $expires | Expires (in seconds) |
Definition at line 150 of file ElggMemcache.php.
ElggMemcache::setDefaultExpiry | ( | $expires = 0 | ) |
Set the default expiry.
int | $expires | The lifetime as a unix timestamp or time from now. Defaults forever. |
Definition at line 119 of file ElggMemcache.php.