Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
Merge 0517e47 into 1b83f1c
Browse files Browse the repository at this point in the history
  • Loading branch information
ppaulis committed Jul 31, 2019
2 parents 1b83f1c + 0517e47 commit 67d9c30
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ All notable changes to this project will be documented in this file, in reverse

### Fixed

- Nothing.
- [#186](https://github.com/zendframework/zend-cache/pull/186) Replaced deprecated `Redis::delete()` calls with `del()`.

## 2.8.2 - 2018-05-01

Expand Down
6 changes: 3 additions & 3 deletions src/Storage/Adapter/Redis.php
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ protected function internalRemoveItem(& $normalizedKey)
{
$redis = $this->getRedisResource();
try {
return (bool) $redis->delete($this->namespacePrefix . $normalizedKey);
return (bool) $redis->del($this->namespacePrefix . $normalizedKey);
} catch (RedisResourceException $e) {
throw new Exception\RuntimeException($redis->getLastError(), $e->getCode(), $e);
}
Expand Down Expand Up @@ -434,7 +434,7 @@ public function clearByNamespace($namespace)
$options = $this->getOptions();
$prefix = $namespace . $options->getNamespaceSeparator();

$redis->delete($redis->keys($prefix . '*'));
$redis->del($redis->keys($prefix . '*'));

return true;
}
Expand All @@ -460,7 +460,7 @@ public function clearByPrefix($prefix)
$namespace = $options->getNamespace();
$prefix = ($namespace === '') ? '' : $namespace . $options->getNamespaceSeparator() . $prefix;

$redis->delete($redis->keys($prefix.'*'));
$redis->del($redis->keys($prefix.'*'));

return true;
}
Expand Down

0 comments on commit 67d9c30

Please sign in to comment.