Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge remote-tracking branch 'origin/2.2-redis-engine' into 2.2-redis…

…-engine
  • Loading branch information...
commit e73bb2745009b817cd93148de1b3b19fae34f85b 2 parents d588758 + 4958f0e
@lorenzo lorenzo authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/Cake/Cache/Engine/RedisEngine.php
View
6 lib/Cake/Cache/Engine/RedisEngine.php
@@ -77,9 +77,9 @@ protected function _connect() {
try {
$this->_Redis = new Redis();
if (empty($this->settings['persistent'])) {
- $return = $this->_Redis->connect($this->settings['server']);
+ $return = $this->_Redis->connect($this->settings['server']);
} else {
- $return = $this->_Redis->pconnect($this->settings['server']);
+ $return = $this->_Redis->pconnect($this->settings['server']);
}
} catch (RedisException $e) {
return false;
@@ -114,7 +114,7 @@ public function write($key, $value, $duration) {
*/
public function read($key) {
$value = $this->_Redis->get($key);
- if (is_numeric($value)) {
+ if (ctype_digit($value)) {
$value = (int) $value;
}
if ($value !== false && is_string($value)) {
Please sign in to comment.
Something went wrong with that request. Please try again.