public function Redis_Cache_Predis::setLastFlushTimeFor in Redis 7.3
File
- lib/
Redis/ Cache/ Predis.php, line 8
Class
- Redis_Cache_Predis
- Predis cache backend.
Code
public function setLastFlushTimeFor($time, $volatile = false) {
$client = $this
->getClient();
$key = $this
->getKey(self::LAST_FLUSH_KEY);
if ($volatile) {
$client
->hset($key, 'volatile', $time);
}
else {
$client
->hmset($key, array(
'permanent' => $time,
'volatile' => $time,
));
}
}