
Static Public Member Functions | |
| static | me () |
| |
| static | setPeer (CachePeer $peer) |
| static | setDefaultWorker ($worker) |
| static | setDaoMap ($map) |
| associative array, className -> workerName | |
| static | worker (GenericDAO $dao) |
| |
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 | |
Definition at line 23 of file Cache.class.php.
| static Cache::me | ( | ) | [static] |
Implements Instantiatable.
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] |
| static Cache::setDefaultWorker | ( | $ | worker | ) | [static] |
Definition at line 59 of file Cache.class.php.
References $worker, and Assert::isTrue().

| 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] |
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().
| 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] |
Cache::$peer = null [static, private] |
Cache::$worker = null [static, private] |
default worker
Definition at line 41 of file Cache.class.php.
Referenced by setDefaultWorker(), and worker().
1.5.4