Transparent caching DAO worker. More...
Public Member Functions | |
__construct (GenericDAO $dao) | |
uncacheLists () | |
uncachers | |
Protected Member Functions | |
cacheByQuery (SelectQuery $query, $object, $expires=Cache::EXPIRES_FOREVER) | |
cachers | |
cacheListByQuery (SelectQuery $query, $array) | |
Private Attributes | |
$indexKey = null | |
| |
gentlyGetByKey ($key) | |
internal helpers | |
syncMap ($objectKey) | |
checkMap ($objectKey) |
Transparent caching DAO worker.
Definition at line 20 of file SmartDaoWorker.class.php.
SmartDaoWorker::__construct | ( | GenericDAO $ | dao | ) |
Reimplemented from BaseDaoWorker.
Definition at line 24 of file SmartDaoWorker.class.php.
SmartDaoWorker::cacheByQuery | ( | SelectQuery $ | query, | |
$ | object, | |||
$ | expires = Cache::EXPIRES_FOREVER | |||
) | [protected] |
cachers
Reimplemented from CommonDaoWorker.
Definition at line 36 of file SmartDaoWorker.class.php.
References QueryIdentification::getId(), TransparentDaoWorker::keyToInt(), BaseDaoWorker::makeQueryKey(), Cache::me(), SemaphorePool::me(), and syncMap().
SmartDaoWorker::cacheListByQuery | ( | SelectQuery $ | query, | |
$ | array | |||
) | [protected] |
Reimplemented from CommonDaoWorker.
Definition at line 62 of file SmartDaoWorker.class.php.
References TransparentDaoWorker::cacheById(), Cache::EXPIRES_FOREVER, Assert::isArray(), Assert::isTrue(), TransparentDaoWorker::keyToInt(), BaseDaoWorker::makeQueryKey(), SemaphorePool::me(), Cache::me(), Cache::NOT_FOUND, and syncMap().
SmartDaoWorker::checkMap | ( | $ | objectKey | ) | [private] |
Definition at line 157 of file SmartDaoWorker.class.php.
References TransparentDaoWorker::keyToInt(), Cache::me(), and SemaphorePool::me().
Referenced by gentlyGetByKey().
SmartDaoWorker::gentlyGetByKey | ( | $ | key | ) | [protected] |
internal helpers
Reimplemented from TransparentDaoWorker.
Definition at line 129 of file SmartDaoWorker.class.php.
References checkMap(), and Cache::me().
SmartDaoWorker::syncMap | ( | $ | objectKey | ) | [private] |
Definition at line 142 of file SmartDaoWorker.class.php.
References Cache::EXPIRES_FOREVER, and Cache::me().
Referenced by cacheByQuery(), and cacheListByQuery().
SmartDaoWorker::uncacheLists | ( | ) |
uncachers
Reimplemented from CommonDaoWorker.
Definition at line 100 of file SmartDaoWorker.class.php.
References TransparentDaoWorker::keyToInt(), SemaphorePool::me(), and Cache::me().
SmartDaoWorker::$indexKey = null [private] |
Definition at line 22 of file SmartDaoWorker.class.php.