|
Elgg
Version 2.3
|
A "Null" version of ElggMemcache for use on sites without memcache setup. More...
Public Member Functions | |
| save ($key, $data, $ttl=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 (does not work) More... | |
Public Member Functions inherited from ElggSharedMemoryCache | |
| setNamespace ($namespace="default") | |
| Set the namespace of this cache. More... | |
| getNamespace () | |
| Get the namespace currently defined. More... | |
Public Member Functions inherited from ElggCache | |
| __construct () | |
| Set the constructor. More... | |
| setVariable ($variable, $value) | |
| Set a cache variable. 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... | |
A "Null" version of ElggMemcache for use on sites without memcache setup.
This will eventually be replaced by something like Elgg\Cache\NullPool.
@access private
Definition at line 11 of file NullCache.php.
| Elgg\Cache\NullCache::clear | ( | ) |
Clears the entire cache (does not work)
Reimplemented from ElggCache.
Definition at line 55 of file NullCache.php.
| Elgg\Cache\NullCache::delete | ( | $key | ) |
Delete data.
| string | $key | Unused |
Reimplemented from ElggCache.
Definition at line 46 of file NullCache.php.
| Elgg\Cache\NullCache::load | ( | $key, | |
$offset = 0, |
|||
$limit = null |
|||
| ) |
Retrieves data.
| string | $key | Unused |
| int | $offset | Unused |
| int | $limit | Unused |
Reimplemented from ElggCache.
Definition at line 35 of file NullCache.php.
| Elgg\Cache\NullCache::save | ( | $key, | |
| $data, | |||
$ttl = null |
|||
| ) |
Saves a name and value to the cache.
| string | $key | Unused |
| string | $data | Unused |
| int | $ttl | Unused |
Definition at line 22 of file NullCache.php.