ElggMemcache Class Reference

Inheritance diagram for ElggMemcache:
ElggSharedMemoryCache ElggCache

List of all members.

Public Member Functions

 __construct ($namespace= 'default')
 Connect to memcache.
 setDefaultExpiry ($expires=0)
 Set the default expiry.
 save ($key, $data, $expires=null)
 Saves a name and value to the cache.
 load ($key, $offset=0, $limit=null)
 Retrieves data.
 delete ($key)
 Delete data.
 clear ()
 Clears the entire cache?

Detailed Description

Definition at line 8 of file ElggMemcache.php.


Constructor & Destructor Documentation

ElggMemcache::__construct ( namespace = 'default'  ) 

Connect to memcache.

Parameters:
string $namespace The namespace for this cache to write to - note, namespaces of the same name are shared!
Exceptions:
ConfigurationException 

Definition at line 38 of file ElggMemcache.php.


Member Function Documentation

ElggMemcache::clear (  ) 

Clears the entire cache?

Returns:
true

Reimplemented from ElggCache.

Definition at line 197 of file ElggMemcache.php.

ElggMemcache::delete ( key  ) 

Delete data.

Parameters:
string $key Name of data
Returns:
bool

Reimplemented from ElggCache.

Definition at line 184 of file ElggMemcache.php.

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

Retrieves data.

Parameters:
string $key Name of data to retrieve
int $offset Offset
int $limit Limit
Returns:
mixed

Reimplemented from ElggCache.

Definition at line 166 of file ElggMemcache.php.

ElggMemcache::save ( key,
data,
expires = null 
)

Saves a name and value to the cache.

Parameters:
string $key Name
string $data Value
integer $expires Expires (in seconds)
Returns:
bool

Definition at line 142 of file ElggMemcache.php.

ElggMemcache::setDefaultExpiry ( expires = 0  ) 

Set the default expiry.

Parameters:
int $expires The lifetime as a unix timestamp or time from now. Defaults forever.
Returns:
void

Definition at line 111 of file ElggMemcache.php.


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