File: phpbb/cache/driver/redis.php
Unmodified
Added
Modified
Removed
Line 128 | Line 128 |
---|
/** * Store data in the cache
|
/** * Store data in the cache
|
| * * For the info, see https://phpredis.github.io/phpredis/Redis.html#method_set, * https://redis.io/docs/latest/commands/set/ * and https://redis.io/docs/latest/commands/expire/#appendix-redis-expires
|
* * @access protected * @param string $var Cache key
| * * @access protected * @param string $var Cache key
|
Line 137 | Line 141 |
---|
*/ function _write($var, $data, $ttl = 2592000) {
|
*/ function _write($var, $data, $ttl = 2592000) {
|
if ($ttl == 0) { return $this->redis->set($var, $data); } return $this->redis->setex($var, $ttl, $data);
| return $this->redis->set($var, $data, ['EXAT' => time() + $ttl]);
|
}
/**
| }
/**
|