diff --git a/lib/Cake/Cache/Engine/FileEngine.php b/lib/Cake/Cache/Engine/FileEngine.php index 9127982765f..4c953d66742 100644 --- a/lib/Cake/Cache/Engine/FileEngine.php +++ b/lib/Cake/Cache/Engine/FileEngine.php @@ -312,10 +312,10 @@ protected function _clearDirectory($path, $now, $threshold) { * @param string $key * @param integer $offset * @return void - * @throws Cake\Error\CacheException + * @throws Cake\Error\Exception */ public function decrement($key, $offset = 1) { - throw new Error\CacheException(__d('cake_dev', 'Files cannot be atomically decremented.')); + throw new Error\Exception(__d('cake_dev', 'Files cannot be atomically decremented.')); } /** @@ -324,10 +324,10 @@ public function decrement($key, $offset = 1) { * @param string $key * @param integer $offset * @return void - * @throws Cake\Error\CacheException + * @throws Cake\Error\Exception */ public function increment($key, $offset = 1) { - throw new Error\CacheException(__d('cake_dev', 'Files cannot be atomically incremented.')); + throw new Error\Exception(__d('cake_dev', 'Files cannot be atomically incremented.')); } /** diff --git a/lib/Cake/Cache/Engine/MemcacheEngine.php b/lib/Cake/Cache/Engine/MemcacheEngine.php index 9327096fb5a..cde5d925e57 100644 --- a/lib/Cake/Cache/Engine/MemcacheEngine.php +++ b/lib/Cake/Cache/Engine/MemcacheEngine.php @@ -159,11 +159,11 @@ public function read($key) { * @param string $key Identifier for the data * @param integer $offset How much to increment * @return New incremented value, false otherwise - * @throws Cake\Error\CacheException when you try to increment with compress = true + * @throws Cake\Error\Exception when you try to increment with compress = true */ public function increment($key, $offset = 1) { if ($this->settings['compress']) { - throw new Error\CacheException( + throw new Error\Exception( __d('cake_dev', 'Method %s not implemented for compressed cache in %s', 'increment()', __CLASS__) ); } @@ -176,11 +176,11 @@ public function increment($key, $offset = 1) { * @param string $key Identifier for the data * @param integer $offset How much to subtract * @return New decremented value, false otherwise - * @throws Cake\Error\CacheException when you try to decrement with compress = true + * @throws Cake\Error\Exception when you try to decrement with compress = true */ public function decrement($key, $offset = 1) { if ($this->settings['compress']) { - throw new Error\CacheException( + throw new Error\Exception( __d('cake_dev', 'Method %s not implemented for compressed cache in %s', 'decrement()', __CLASS__) ); } diff --git a/lib/Cake/Cache/Engine/RedisEngine.php b/lib/Cake/Cache/Engine/RedisEngine.php index 0ab7824b664..d0bf277d70b 100644 --- a/lib/Cake/Cache/Engine/RedisEngine.php +++ b/lib/Cake/Cache/Engine/RedisEngine.php @@ -134,7 +134,6 @@ public function read($key) { * @param string $key Identifier for the data * @param integer $offset How much to increment * @return New incremented value, false otherwise - * @throws CacheException when you try to increment with compress = true */ public function increment($key, $offset = 1) { return (int)$this->_Redis->incrBy($key, $offset); @@ -146,7 +145,6 @@ public function increment($key, $offset = 1) { * @param string $key Identifier for the data * @param integer $offset How much to subtract * @return New decremented value, false otherwise - * @throws CacheException when you try to decrement with compress = true */ public function decrement($key, $offset = 1) { return (int)$this->_Redis->decrBy($key, $offset);