Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

EasyMemCache Class Reference
[EasyCache System]

Inheritance diagram for EasyMemCache:

EasyCache List of all members.

Detailed Description

cache data directly to memory.

this is by far the best option for caching. it uses memcached server (www.danga.com/memcached/) which is basically a daemon that stores your cached data to memory in a very efficient and fast manner. you will need the memcached php extensions. this will make your site lightning fast.

Definition at line 257 of file cache.inc.php.

Public Member Functions

 __construct ($servers= 'localhost:112211', $life=null)
 create our object.
 get ($key)
 get data from the cache
 set ($key, $data)
 set the data to the cache
 delete ($key)
 delete data from the cache
 flush ()
 completely wipe the cache and start over

Public Attributes

 $mc


Member Function Documentation

EasyMemCache::__construct servers = 'localhost:112211',
life = null
 

create our object.

where and how long to store it.

Parameters:
$servers a string or array of server addresses in form 'server.name:port'
$life the life of the cached data in seconds.

Definition at line 267 of file cache.inc.php.

EasyMemCache::delete key  ) 
 

delete data from the cache

Parameters:
$key the key to delete from teh cache

Reimplemented from EasyCache.

Definition at line 330 of file cache.inc.php.

EasyMemCache::flush  ) 
 

completely wipe the cache and start over

Reimplemented from EasyCache.

Definition at line 337 of file cache.inc.php.

EasyMemCache::get key  ) 
 

get data from the cache

Parameters:
$key the key of the data in the cache to get. can be a string or an array of keys to fetch.
Returns:
if the data is found, it will return the data as the appropriate object. if not found, it will return false. if you passed in an array, the return will be an array with the same keys, with either data or false for values, as appropriate.

Reimplemented from EasyCache.

Definition at line 292 of file cache.inc.php.

References get().

Referenced by get().

EasyMemCache::set key,
data
 

set the data to the cache

Parameters:
$key the key to save the data under
$data the data to save to cache. this can be anything, the cachebot will automatically run any variable through serialize and unserialize to make it as seamless as possible.

Reimplemented from EasyCache.

Definition at line 323 of file cache.inc.php.

References set().

Referenced by set().


Member Data Documentation

EasyMemCache::$mc
 

Definition at line 259 of file cache.inc.php.


The documentation for this class was generated from the following file:
Generated on Fri Oct 27 12:26:41 2006 for BaseJumper by doxygen 1.3.9.1