ReferencePool Class Reference
[Application-wide cache subsystem]

A wrapper to single cache to prevent cloning of returned cached objects. More...

Inheritance diagram for ReferencePool:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 __construct (CachePeer $peer)
 mark ($className)
 
Returns:
ReferencePool

 get ($key)
 delete ($key)
 clean ()
 
Returns:
CachePeer

 isAlive ()

Protected Member Functions

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

Private Attributes

 $peer = null
 $pool = array()


Detailed Description

A wrapper to single cache to prevent cloning of returned cached objects.

Deprecated:
by identity map at GenericDAO
Examples:

cacheSettings.php.

Definition at line 20 of file ReferencePool.class.php.


Constructor & Destructor Documentation

ReferencePool::__construct ( CachePeer peer  ) 

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


Member Function Documentation

ReferencePool::mark ( className  ) 

Returns:
ReferencePool

Reimplemented from SelectivePeer.

Definition at line 33 of file ReferencePool.class.php.

References SelectivePeer::$className.

ReferencePool::get ( key  ) 

Reimplemented from CachePeer.

Definition at line 40 of file ReferencePool.class.php.

ReferencePool::delete ( key  ) 

Reimplemented from CachePeer.

Definition at line 48 of file ReferencePool.class.php.

ReferencePool::clean (  ) 

Returns:
CachePeer

Reimplemented from CachePeer.

Definition at line 58 of file ReferencePool.class.php.

ReferencePool::isAlive (  ) 

Reimplemented from CachePeer.

Definition at line 65 of file ReferencePool.class.php.

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

Reimplemented from CachePeer.

Definition at line 70 of file ReferencePool.class.php.


Member Data Documentation

ReferencePool::$peer = null [private]

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

ReferencePool::$pool = array() [private]

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


The documentation for this class was generated from the following file:
Generated on Sun Dec 9 21:58:22 2007 for onPHP by  doxygen 1.5.4