Skip to content

Commit f86b5ff

Browse files
entsdovg
authored andcommitted
Added campability of redis with old version of redis-server
1 parent bad18db commit f86b5ff

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

core/DB/NoSQL/RedisNoSQL.class.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,9 @@ protected function store($action, $key, $value, $expires = Cache::EXPIRES_MEDIUM
182182
case 'replace':
183183
case 'add':
184184
try {
185-
return $this->redis->setEx($key, $expires, $value);
185+
$result = $this->redis->set($key, $value);
186+
$this->redis->expire($key, $expires);
187+
return $result;
186188
} catch (RedisException $e) {
187189
return $this->alive = false;
188190
}

0 commit comments

Comments
 (0)