Puts data into the cache.
string $id The cache id.:
string $data The cache entry/data.:
bool|int $lifeTime The lifetime. If != false, sets a specific lifetime for this: cache entry (null => infinite lifeTime).
boolean TRUE if the entry was successfully stored in the cache, FALSE otherwise.
Overrides CacheProvider::doSave
protected function doSave($id, $data, $lifeTime = 0) {
$result = $this->redis
->set($id, $data);
if ($lifeTime > 0) {
$this->redis
->expire($id, $lifeTime);
}
return $result;
}