| Total Complexity | 5 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Coverage | 42.86% |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | class QueryCache extends DbCache { |
||
| 14 | |||
| 15 | 7 | public function store($tableName, $condition, $result) { |
|
| 16 | 7 | $key = $this->getKey ( $tableName, $condition ); |
|
| 17 | 7 | $this->memoryCache [$key] = $result; |
|
| 18 | 7 | if ($this->storeDeferred) { |
|
| 19 | $this->toStore [] = $key; |
||
| 20 | } else { |
||
| 21 | 7 | $this->cache->store ( $key, $result ); |
|
| 22 | } |
||
| 23 | 7 | } |
|
| 24 | |||
| 25 | public function delete($tableName, $condition) { |
||
| 34 | } |
||
| 35 | } |
||
| 36 |