onPHP

ReferencePool Class Reference

 

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)
 get ($key)
 delete ($key)
 clean ()
 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.
Examples:

cacheSettings.php.

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


Constructor & Destructor Documentation

ReferencePool::__construct ( CachePeer peer  ) 

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

References $peer.


Member Function Documentation

ReferencePool::mark ( className  ) 

Reimplemented from SelectivePeer.

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

References SelectivePeer::$className.

ReferencePool::get ( key  ) 

Reimplemented from CachePeer.

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

ReferencePool::delete ( key  ) 

Reimplemented from CachePeer.

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

ReferencePool::clean (  ) 

Reimplemented from CachePeer.

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

ReferencePool::isAlive (  ) 

Reimplemented from CachePeer.

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

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

Reimplemented from CachePeer.

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


Member Data Documentation

ReferencePool::$peer = null [private]

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

Referenced by __construct().

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

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


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

generated by doxygen-1.5.1
for onPHP at Tue Feb 13 19:31:00 2007