Public Member Functions | |
| __construct ($namespace= 'default') | |
| Connect to memcache. | |
| setDefaultExpiry ($expires=0) | |
| Set the default expiry. | |
| save ($key, $data, $expires=null) | |
| Saves a name and value to the cache. | |
| load ($key, $offset=0, $limit=null) | |
| Retrieves data. | |
| delete ($key) | |
| Delete data. | |
| clear () | |
| Clears the entire cache? | |
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 38 of file ElggMemcache.php.
| ElggMemcache::clear | ( | ) |
Clears the entire cache?
Reimplemented from ElggCache.
Definition at line 197 of file ElggMemcache.php.
| ElggMemcache::delete | ( | $ | key | ) |
Delete data.
| string | $key Name of data |
Reimplemented from ElggCache.
Definition at line 184 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 166 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 142 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 111 of file ElggMemcache.php.
1.6.3