Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion core/DB/NoSQL/RedisNoSQL.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
6 changes: 6 additions & 0 deletions doc/ChangeLog
Original file line number Diff line number Diff line change
@@ -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
Expand Down