ElggStaticVariableCache Class Reference

Inheritance diagram for ElggStaticVariableCache:
ElggSharedMemoryCache ElggCache

List of all members.

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.

Detailed Description

Definition at line 10 of file ElggStaticVariableCache.php.


Constructor & Destructor Documentation

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).

Parameters:
string $namespace The namespace for this cache to write to.
Warning:
namespaces of the same name are shared!

Definition at line 27 of file ElggStaticVariableCache.php.


Member Function Documentation

ElggStaticVariableCache::clear (  ) 

Clears the cache for a particular namespace.

Returns:
void

Reimplemented from ElggCache.

Definition at line 87 of file ElggStaticVariableCache.php.

ElggStaticVariableCache::delete ( key  ) 

Invalidate a given key.

Parameters:
string $key Name
Returns:
bool

Reimplemented from ElggCache.

Definition at line 74 of file ElggStaticVariableCache.php.

ElggStaticVariableCache::load ( key,
offset = 0,
limit = null 
)

Load a key.

Parameters:
string $key Name
int $offset Offset
int $limit Limit
Returns:
string

Reimplemented from ElggCache.

Definition at line 57 of file ElggStaticVariableCache.php.

ElggStaticVariableCache::save ( key,
data 
)

Save a key.

Parameters:
string $key Name
string $data Value
Returns:
boolean

Reimplemented from ElggCache.

Definition at line 40 of file ElggStaticVariableCache.php.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations
Generated on Thu May 23 00:01:26 2013 for Elgg by  doxygen 1.6.3