onPHP

AggregateCache Class Reference

 

AggregateCache Class Reference
[Application-wide cache subsystem]

A wrapper to multiple cache for workload distribution using CachePeer childs. More...

Inheritance diagram for AggregateCache:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 addPeer ($label, CachePeer $peer, $level=self::LEVEL_NORMAL)
 dropPeer ($label)
 setClassLevel ($class, $level)
 checkAlive ()
 get ($key)
 low-level cache access
 add ($key, &$value, $expires=Cache::EXPIRES_MINIMUM)
 replace ($key, &$value, $expires=Cache::EXPIRES_MINIMUM)
 set ($key, &$value, $expires=Cache::EXPIRES_MINIMUM)
 delete ($key)
 clean ()
 getStats ()

Static Public Member Functions

static create ()

Public Attributes

const LEVEL_ULTRAHIGH = 0xFFFF
const LEVEL_HIGH = 0xC000
const LEVEL_NORMAL = 0x8000
const LEVEL_LOW = 0x4000
const LEVEL_VERYLOW = 0x0001

Protected Member Functions

 store ($action, $key, &$value, $expires=Cache::EXPIRES_MINIMUM)

Private Member Functions

 guessLabel ($key)
 brain

Private Attributes

 $peers = array()
 $levels = array()

Detailed Description

A wrapper to multiple cache for workload distribution using CachePeer childs.

Definition at line 19 of file AggregateCache.class.php.


Member Function Documentation

static AggregateCache::create (  )  [static]

Examples:
cacheSettings.php.

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

AggregateCache::addPeer ( label,
CachePeer peer,
level = self::LEVEL_NORMAL 
)

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

References CachePeer::isAlive().

Here is the call graph for this function:

AggregateCache::dropPeer ( label  ) 

Definition at line 54 of file AggregateCache.class.php.

AggregateCache::setClassLevel ( class,
level 
)

Definition at line 66 of file AggregateCache.class.php.

AggregateCache::checkAlive (  ) 

Definition at line 73 of file AggregateCache.class.php.

References CachePeer::isAlive().

Referenced by add(), clean(), delete(), get(), replace(), and set().

Here is the call graph for this function:

AggregateCache::get ( key  ) 

low-level cache access

Reimplemented from CachePeer.

Definition at line 90 of file AggregateCache.class.php.

References checkAlive(), guessLabel(), and CachePeer::isAlive().

Here is the call graph for this function:

AggregateCache::add ( key,
&$  value,
expires = Cache::EXPIRES_MINIMUM 
)

Reimplemented from CachePeer.

Definition at line 102 of file AggregateCache.class.php.

References checkAlive(), guessLabel(), and CachePeer::isAlive().

Here is the call graph for this function:

AggregateCache::replace ( key,
&$  value,
expires = Cache::EXPIRES_MINIMUM 
)

Reimplemented from CachePeer.

Definition at line 119 of file AggregateCache.class.php.

References checkAlive(), guessLabel(), and CachePeer::isAlive().

Here is the call graph for this function:

AggregateCache::set ( key,
&$  value,
expires = Cache::EXPIRES_MINIMUM 
)

Reimplemented from CachePeer.

Definition at line 136 of file AggregateCache.class.php.

References checkAlive(), guessLabel(), and CachePeer::isAlive().

Here is the call graph for this function:

AggregateCache::delete ( key  ) 

Reimplemented from CachePeer.

Definition at line 153 of file AggregateCache.class.php.

References checkAlive(), guessLabel(), and CachePeer::isAlive().

Here is the call graph for this function:

AggregateCache::clean (  ) 

Reimplemented from CachePeer.

Definition at line 167 of file AggregateCache.class.php.

References checkAlive().

Here is the call graph for this function:

AggregateCache::getStats (  ) 

Definition at line 177 of file AggregateCache.class.php.

AggregateCache::store ( action,
key,
&$  value,
expires = Cache::EXPIRES_MINIMUM 
) [protected]

Reimplemented from CachePeer.

Definition at line 187 of file AggregateCache.class.php.

AggregateCache::guessLabel ( key  )  [private]

brain

Definition at line 197 of file AggregateCache.class.php.

References SelectivePeer::getClassName().

Referenced by add(), delete(), get(), replace(), and set().

Here is the call graph for this function:


Member Data Documentation

Definition at line 21 of file AggregateCache.class.php.

Definition at line 22 of file AggregateCache.class.php.

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

const AggregateCache::LEVEL_LOW = 0x4000

Definition at line 24 of file AggregateCache.class.php.

Examples:
cacheSettings.php.

Definition at line 25 of file AggregateCache.class.php.

AggregateCache::$peers = array() [private]

Definition at line 27 of file AggregateCache.class.php.

AggregateCache::$levels = array() [private]

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


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

generated by doxygen-1.5.1
for onPHP at Mon Jan 8 11:42:28 2007