9 abstract class ElggCache implements ArrayAccess {
21 $this->variables = array();
50 if (!is_array($this->variables)) {
51 $this->variables = array();
54 $this->variables[$variable] =
$value;
81 if (isset($this->variables[$variable])) {
82 return $this->variables[$variable];
130 return $this->
delete(
$key);
164 abstract public function delete(
$key);
171 abstract public function clear();
184 if (!isset($this[
$key])) {
230 if (isset($this->
$key)) {
245 return isset($this->
$key);
offsetUnset($key)
Unsets a key.
__construct()
Set the constructor.
__isset($key)
Supporting isset, using $this->load() with default values.
add($key, $data)
Add a key only if it doesn't already exist.
__get($key)
Class member get overloading, returning key using $this->load defaults.
get_variable($variable)
Get variables for this cache.
offsetExists($key)
Does key exist.
save($key, $data)
Save data in a cache.
elgg_deprecated_notice($msg, $dep_version, $backtrace_level=1)
Sends a notice about deprecated use of a function, view, etc.
offsetGet($key)
Get the value for specified key.
set_variable($variable, $value)
Set a cache variable.
offsetSet($key, $value)
Assigns a value for the specified key.
__set($key, $value)
Class member set overloading, setting a key using $this->save defaults.
load($key, $offset=0, $limit=null)
Load data from the cache using a given key.
clear()
Clear out all the contents of the cache.
setVariable($variable, $value)
Set a cache variable.
__unset($key)
Supporting unsetting of magic attributes.
getVariable($variable)
Get variables for this cache.