gentlyGetByKey ($key) | |
internal helpers | |
syncMap ($objectKey) | |
checkMap ($objectKey) | |
Public Member Functions | |
__construct (GenericDAO $dao) | |
cacheByQuery (SelectQuery $query, $object) | |
cachers | |
cacheListByQuery (SelectQuery $query, $array) | |
uncacheLists () | |
uncachers | |
Private Attributes | |
$indexKey = null | |
$watermark = null |
VoodooDaoWorker for greedy though non-blocking brother.
Definition at line 21 of file SmartDaoWorker.class.php.
SmartDaoWorker::__construct | ( | GenericDAO $ | dao | ) |
Reimplemented from BaseDaoWorker.
Definition at line 26 of file SmartDaoWorker.class.php.
References Cache::me().
SmartDaoWorker::cacheByQuery | ( | SelectQuery $ | query, | |
$ | object | |||
) |
cachers
Implements BaseDAO.
Definition at line 44 of file SmartDaoWorker.class.php.
References Cache::EXPIRES_FOREVER, QueryIdentification::getId(), TransparentDaoWorker::keyToInt(), Cache::me(), SemaphorePool::me(), and syncMap().
SmartDaoWorker::cacheListByQuery | ( | SelectQuery $ | query, | |
$ | array | |||
) |
Implements BaseDAO.
Definition at line 68 of file SmartDaoWorker.class.php.
References TransparentDaoWorker::cacheById(), Cache::EXPIRES_FOREVER, Assert::isTrue(), TransparentDaoWorker::keyToInt(), SemaphorePool::me(), Cache::me(), Cache::NOT_FOUND, and syncMap().
SmartDaoWorker::uncacheLists | ( | ) |
uncachers
Implements BaseDAO.
Definition at line 107 of file SmartDaoWorker.class.php.
References TransparentDaoWorker::keyToInt(), SemaphorePool::me(), and Cache::me().
SmartDaoWorker::gentlyGetByKey | ( | $ | key | ) | [protected] |
internal helpers
Reimplemented from TransparentDaoWorker.
Definition at line 136 of file SmartDaoWorker.class.php.
References checkMap(), and Cache::me().
SmartDaoWorker::syncMap | ( | $ | objectKey | ) | [private] |
Definition at line 149 of file SmartDaoWorker.class.php.
References Cache::EXPIRES_FOREVER, and Cache::me().
Referenced by cacheByQuery(), and cacheListByQuery().
SmartDaoWorker::checkMap | ( | $ | objectKey | ) | [private] |
Definition at line 164 of file SmartDaoWorker.class.php.
References TransparentDaoWorker::keyToInt(), Cache::me(), and SemaphorePool::me().
Referenced by gentlyGetByKey().
SmartDaoWorker::$indexKey = null [private] |
Definition at line 23 of file SmartDaoWorker.class.php.
SmartDaoWorker::$watermark = null [private] |
Definition at line 24 of file SmartDaoWorker.class.php.