onPHP

Cache Class Reference

 

Cache Class Reference

Inheritance diagram for Cache:

List of all members.

Static Public Member Functions

static me ()
 
Returns:
CachePeer

static setPeer (CachePeer $peer)
static setDefaultWorker ($worker)
static setDaoMap ($map)
 associative array, className -> workerName
static worker (GenericDAO $dao)
 
Returns:
BaseDaoWorker

static dropWorkers ()

Public Attributes

const NOT_FOUND = 'nil'
const EXPIRES_FOREVER = 604800
const EXPIRES_MAXIMUM = 21600
const EXPIRES_MEDIUM = 3600
const EXPIRES_MINIMUM = 300
const DO_NOT_CACHE = -2005

Static Private Attributes

static $map = null
 map dao -> worker
static $peer = null
 selected peer
static $worker = null
 default worker
static $instances = array()
 spawned workers


Detailed Description

Definition at line 23 of file Cache.class.php.


Member Function Documentation

static Cache::setPeer ( CachePeer peer  )  [static]

Examples:
cacheSettings.php.

Definition at line 57 of file Cache.class.php.

static Cache::setDefaultWorker ( worker  )  [static]

Definition at line 62 of file Cache.class.php.

References $worker, and Assert::isTrue().

Here is the call graph for this function:

static Cache::setDaoMap ( map  )  [static]

associative array, className -> workerName

Definition at line 72 of file Cache.class.php.

References $map.

static Cache::dropWorkers (  )  [static]

Definition at line 97 of file Cache.class.php.


Member Data Documentation

const Cache::EXPIRES_MAXIMUM = 21600

Definition at line 28 of file Cache.class.php.

const Cache::EXPIRES_MEDIUM = 3600

Definition at line 29 of file Cache.class.php.

Definition at line 30 of file Cache.class.php.

Cache::$map = null [static, private]

map dao -> worker

Definition at line 35 of file Cache.class.php.

Referenced by setDaoMap().

Cache::$peer = null [static, private]

selected peer

Definition at line 38 of file Cache.class.php.

Cache::$worker = null [static, private]

default worker

Definition at line 41 of file Cache.class.php.

Referenced by setDefaultWorker(), and worker().

Cache::$instances = array() [static, private]

spawned workers

Definition at line 44 of file Cache.class.php.


The documentation for this class was generated from the following file:

generated by doxygen-1.5.4
for onPHP at Sun Jan 6 00:54:10 2008