for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Ubiquity\cache\database;
use Ubiquity\utils\base\UArray;
class QueryCache extends DbCache {
public function fetch($tableName, $condition) {
$key=$tableName . "." . $this->getKey($condition);
if ($this->cache->exists($key))
return $this->cache->fetch($key);
return false;
}
public function store($tableName, $condition, $result) {
$this->cache->store($tableName . "." . $this->getKey($condition), "return " . UArray::asPhpArray($result, "array") . ";");
public function delete($tableName, $condition){
return $this->cache->remove($key);