Cache Class Reference

Inheritance diagram for Cache:

Inheritance graph
[legend]

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


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


Detailed Description

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


Member Function Documentation

static Cache::me (  )  [static]

Returns:
CachePeer

Implements Instantiatable.

Examples:
cacheSettings.php.

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

Referenced by VoodooDaoWorker::__construct(), SmartDaoWorker::__construct(), TransparentDaoWorker::cacheById(), CommonDaoWorker::cacheById(), VoodooDaoWorker::cacheByQuery(), SmartDaoWorker::cacheByQuery(), CommonDaoWorker::cacheByQuery(), VoodooDaoWorker::cacheListByQuery(), SmartDaoWorker::cacheListByQuery(), TransparentDaoWorker::cacheNullById(), SmartDaoWorker::checkMap(), VoodooDaoWorker::gentlyGetByKey(), SmartDaoWorker::gentlyGetByKey(), BaseDaoWorker::getCachedById(), BaseDaoWorker::getCachedByQuery(), SmartDaoWorker::syncMap(), BaseDaoWorker::uncacheById(), BaseDaoWorker::uncacheByQuery(), and SmartDaoWorker::uncacheLists().

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

Examples:
cacheSettings.php.

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

static Cache::setDefaultWorker ( worker  )  [static]

Definition at line 59 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 69 of file Cache.class.php.

References $map.

static Cache::worker ( GenericDAO dao  )  [static]

Returns:
BaseDaoWorker

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

References $worker.

Referenced by GenericDAO::cacheById(), GenericDAO::cacheByQuery(), GenericDAO::cacheListByQuery(), GenericDAO::dropById(), GenericDAO::dropByIds(), GenericDAO::get(), GenericDAO::getById(), GenericDAO::getByLogic(), GenericDAO::getByQuery(), GenericDAO::getCachedById(), GenericDAO::getCachedByQuery(), GenericDAO::getCountedList(), GenericDAO::getCustom(), GenericDAO::getCustomList(), GenericDAO::getCustomRowList(), GenericDAO::getList(), GenericDAO::getListByIds(), GenericDAO::getListByLogic(), GenericDAO::getListByQuery(), GenericDAO::getPlainList(), GenericDAO::getQueryResult(), GenericDAO::uncacheById(), GenericDAO::uncacheByIds(), GenericDAO::uncacheByQuery(), and GenericDAO::uncacheLists().


Member Data Documentation

const Cache::NOT_FOUND = 'nil'

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

Referenced by VoodooDaoWorker::cacheListByQuery(), SmartDaoWorker::cacheListByQuery(), TransparentDaoWorker::cacheNullById(), TransparentDaoWorker::getById(), CommonDaoWorker::getById(), TransparentDaoWorker::getByQuery(), CommonDaoWorker::getByQuery(), TransparentDaoWorker::getCustom(), CommonDaoWorker::getCustom(), TransparentDaoWorker::getCustomList(), CommonDaoWorker::getCustomList(), TransparentDaoWorker::getCustomRowList(), CommonDaoWorker::getCustomRowList(), TransparentDaoWorker::getListByIds(), CommonDaoWorker::getListByIds(), TransparentDaoWorker::getListByQuery(), CommonDaoWorker::getListByQuery(), and Memcached::store().

const Cache::EXPIRES_FOREVER = 604800

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

Referenced by TransparentDaoWorker::cacheById(), VoodooDaoWorker::cacheByQuery(), SmartDaoWorker::cacheByQuery(), VoodooDaoWorker::cacheListByQuery(), SmartDaoWorker::cacheListByQuery(), TransparentDaoWorker::cacheNullById(), eAcceleratorSegmentHandler::storeMap(), ApcSegmentHandler::storeMap(), and SmartDaoWorker::syncMap().

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.

const Cache::EXPIRES_MINIMUM = 300

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

const Cache::DO_NOT_CACHE = -2005

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

Referenced by CommonDaoWorker::cacheById(), CommonDaoWorker::cacheByQuery(), CommonDaoWorker::getById(), CommonDaoWorker::getByQuery(), CommonDaoWorker::getCustom(), CommonDaoWorker::getCustomList(), CommonDaoWorker::getCustomRowList(), CommonDaoWorker::getListByIds(), CommonDaoWorker::getListByQuery(), CommonDaoWorker::getQueryResult(), and Memcached::store().

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().


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