onPHP

SmartDaoWorker Class Reference

 

SmartDaoWorker Class Reference
[Root classes for building DAO hierarchies]

Transparent caching DAO worker. More...

Inheritance diagram for SmartDaoWorker:

Inheritance graph
[legend]
List of all members.
 gentlyGetByKey ($key)
 syncMap ($objectKey)
 checkMap ($objectKey)

Public Member Functions

 __construct (GenericDAO $dao)
 cacheByQuery (SelectQuery $query, $object)
 cacheListByQuery (SelectQuery $query, $array)
 uncacheLists ()

Private Attributes

 $indexKey = null
 $watermark = null

Detailed Description

Transparent caching DAO worker.

See also:
CommonDaoWorker for manual-caching one.

VoodooDaoWorker for greedy though non-blocking brother.

FileSystemDaoWorker for filesystem based child of VoodooDaoWorker.

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


Constructor & Destructor Documentation

SmartDaoWorker::__construct ( GenericDAO dao  ) 

Reimplemented from BaseDaoWorker.

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

References BaseDaoWorker::$dao, and Cache::me().

Here is the call graph for this function:


Member Function Documentation

SmartDaoWorker::cacheByQuery ( SelectQuery query,
object 
)

SmartDaoWorker::cacheListByQuery ( SelectQuery query,
array 
)

SmartDaoWorker::uncacheLists (  ) 

Implements BaseDAO.

Definition at line 107 of file SmartDaoWorker.class.php.

References TransparentDaoWorker::get(), TransparentDaoWorker::keyToInt(), SemaphorePool::me(), and Cache::me().

Here is the call graph for this function:

SmartDaoWorker::gentlyGetByKey ( key  )  [protected]

Reimplemented from TransparentDaoWorker.

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

References checkMap(), TransparentDaoWorker::get(), and Cache::me().

Here is the call graph for this function:

SmartDaoWorker::syncMap ( objectKey  )  [private]

Definition at line 149 of file SmartDaoWorker.class.php.

References Cache::EXPIRES_FOREVER, TransparentDaoWorker::get(), TransparentDaoWorker::keyToInt(), and Cache::me().

Referenced by cacheByQuery(), and cacheListByQuery().

Here is the call graph for this function:

SmartDaoWorker::checkMap ( objectKey  )  [private]

Definition at line 166 of file SmartDaoWorker.class.php.

References TransparentDaoWorker::get(), TransparentDaoWorker::keyToInt(), Cache::me(), and SemaphorePool::me().

Referenced by gentlyGetByKey().

Here is the call graph for this function:


Member Data Documentation

SmartDaoWorker::$indexKey = null [private]

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

SmartDaoWorker::$watermark = null [private]

Definition at line 25 of file SmartDaoWorker.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:44:07 2007