Public Member Functions | |
| __construct ($namespace= 'default') | |
| Create the variable cache. | |
| save ($key, $data) | |
| Save a key. | |
| load ($key, $offset=0, $limit=null) | |
| Load a key. | |
| delete ($key) | |
| Invalidate a given key. | |
| clear () | |
| Clears the cache for a particular namespace. | |
Definition at line 10 of file ElggStaticVariableCache.php.
| ElggStaticVariableCache::__construct | ( | $ | namespace = 'default' |
) |
Create the variable cache.
This function creates a variable cache in a static variable in memory, optionally with a given namespace (to avoid overlap).
| string | $namespace The namespace for this cache to write to. |
Definition at line 27 of file ElggStaticVariableCache.php.
| ElggStaticVariableCache::clear | ( | ) |
Clears the cache for a particular namespace.
Reimplemented from ElggCache.
Definition at line 87 of file ElggStaticVariableCache.php.
| ElggStaticVariableCache::delete | ( | $ | key | ) |
Invalidate a given key.
| string | $key Name |
Reimplemented from ElggCache.
Definition at line 74 of file ElggStaticVariableCache.php.
| ElggStaticVariableCache::load | ( | $ | key, | |
| $ | offset = 0, |
|||
| $ | limit = null | |||
| ) |
Load a key.
| string | $key Name | |
| int | $offset Offset | |
| int | $limit Limit |
Reimplemented from ElggCache.
Definition at line 57 of file ElggStaticVariableCache.php.
| ElggStaticVariableCache::save | ( | $ | key, | |
| $ | data | |||
| ) |
Save a key.
| string | $key Name | |
| string | $data Value |
Reimplemented from ElggCache.
Definition at line 40 of file ElggStaticVariableCache.php.
1.6.3