10 public function fetch($tableName, $condition) {
11 $key=$tableName .
"." . $this->
getKey($condition);
12 if ($this->cache->exists($key))
13 return $this->cache->fetch($key);
17 public function store($tableName, $condition, $result) {
18 $this->cache->store($tableName .
"." . $this->
getKey($condition),
"return " .
UArray::asPhpArray($result,
"array") .
";");
21 public function delete($tableName, $condition){
22 $key=$tableName .
"." . $this->
getKey($condition);
23 if ($this->cache->exists($key))
24 return $this->cache->remove($key);
static asPhpArray($array, $prefix="")
fetch($tableName, $condition)
store($tableName, $condition, $result)