23 public function fetch($tableName, $condition) {
24 $key = $this->
getKey ( $tableName, $condition );
25 if (isset ( $this->memoryCache [$key] )) {
26 return $this->memoryCache [$key];
31 public function store($tableName, $condition, $result) {
32 $this->memoryCache [$this->
getKey ( $tableName, $condition )] = $result;
35 public function delete($tableName, $condition) {
36 $key = $this->
getKey ( $tableName, $condition );
37 if (isset ( $this->memoryCache [$key] )) {
38 unset ( $this->memoryCache [$key] );
Abstract class for database caching Ubiquity\cache\database$DbCache This class is part of Ubiquity.
getKey($tableName, $condition)
Ubiquity\cache\database$MemoryCache This class is part of Ubiquity.
fetch($tableName, $condition)
Fetches data stored for the given condition in table.
store($tableName, $condition, $result)
Caches the given data with the given key (tableName+md5(condition)).