16 private static $__cache;
43 ElggStaticVariableCache::$__cache[$namespace][
$key] =
$data;
60 if (isset(ElggStaticVariableCache::$__cache[$namespace][
$key])) {
61 return ElggStaticVariableCache::$__cache[$namespace][
$key];
74 public function delete(
$key) {
77 unset(ElggStaticVariableCache::$__cache[$namespace][
$key]);
90 if (!isset(ElggStaticVariableCache::$__cache)) {
91 ElggStaticVariableCache::$__cache = array();
94 ElggStaticVariableCache::$__cache[$namespace] = array();
clear()
Clears the cache for a particular namespace.
getNamespace()
Get the namespace currently defined.
save($key, $data)
Save a key.
setNamespace($namespace="default")
Set the namespace of this cache.
load($key, $offset=0, $limit=null)
Load a key.
__construct($namespace= 'default')
Create the variable cache.