src/Comodojo/Cache/Drivers/Memcached.php 1 location
|
@@ 80-90 (lines=11) @@
|
| 77 |
|
|
| 78 |
|
} |
| 79 |
|
|
| 80 |
|
public function delete($key, $namespace) { |
| 81 |
|
|
| 82 |
|
$scope = $this->getNamespaceKey($namespace); |
| 83 |
|
|
| 84 |
|
if ( $scope === false ) return false; |
| 85 |
|
|
| 86 |
|
$shadowName = "$scope-$key"; |
| 87 |
|
|
| 88 |
|
return $this->getInstance()->delete($shadowName); |
| 89 |
|
|
| 90 |
|
} |
| 91 |
|
|
| 92 |
|
public function clear($namespace = null) { |
| 93 |
|
|
src/Comodojo/Cache/Drivers/PhpRedis.php 1 location
|
@@ 127-145 (lines=19) @@
|
| 124 |
|
|
| 125 |
|
} |
| 126 |
|
|
| 127 |
|
public function delete($key, $namespace) { |
| 128 |
|
|
| 129 |
|
try { |
| 130 |
|
|
| 131 |
|
$scope = $this->getNamespaceKey($namespace); |
| 132 |
|
|
| 133 |
|
if ( $scope === false ) return false; |
| 134 |
|
|
| 135 |
|
$shadowName = "$scope-$key"; |
| 136 |
|
|
| 137 |
|
return (bool) $this->getInstance()->delete($shadowName); |
| 138 |
|
|
| 139 |
|
} catch (RedisException $re) { |
| 140 |
|
|
| 141 |
|
throw $re; |
| 142 |
|
|
| 143 |
|
} |
| 144 |
|
|
| 145 |
|
} |
| 146 |
|
|
| 147 |
|
public function clear($namespace = null) { |
| 148 |
|
|