diff --git a/core/DB/NoSQL/RedisNoSQL.class.php b/core/DB/NoSQL/RedisNoSQL.class.php index a1b93ac5d6..2aff6b25b5 100644 --- a/core/DB/NoSQL/RedisNoSQL.class.php +++ b/core/DB/NoSQL/RedisNoSQL.class.php @@ -182,7 +182,9 @@ protected function store($action, $key, $value, $expires = Cache::EXPIRES_MEDIUM case 'replace': case 'add': try { - return $this->redis->setEx($key, $expires, $value); + $result = $this->redis->set($key, $value); + $this->redis->expire($key, $expires); + return $result; } catch (RedisException $e) { return $this->alive = false; } diff --git a/doc/ChangeLog b/doc/ChangeLog index 3f6ab7cda4..53c19d9960 100644 --- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -1,3 +1,9 @@ +2012-08-08 Artem A. Naumenko + + * core/DB/NoSQL/RedisNoSQL.class.php + + added campability with old version of redis servers + 2012-07-20 Alexey S. Denisov * main/Utils/ClassUtils.class.php: fix for php 5.4 support