From 9fc383fe28090e059937f9cdf973312598ec828e Mon Sep 17 00:00:00 2001 From: "Artem A. Naumenko" Date: Tue, 7 Aug 2012 15:38:35 +0400 Subject: [PATCH 1/2] Added campability of redis with old version of redis-server --- core/DB/NoSQL/RedisNoSQL.class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } From 16ddcc60f27cb7618da23bfa6905b9e6fcc9236d Mon Sep 17 00:00:00 2001 From: "Artem A. Naumenko" Date: Wed, 8 Aug 2012 15:53:45 +0400 Subject: [PATCH 2/2] Changedlog updated --- doc/ChangeLog | 6 ++++++ 1 file changed, 6 insertions(+) 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