You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SETEX is deprecated
Could you please update the code to support SET ?
publicfunctionstoreData($key, $data, $expiration)
{
$store = serialize(array('data' => $data, 'expiration' => $expiration));
if (is_null($expiration)) {
return$this->redis->set($this->makeKeyString($key), $store);
} else {
$ttl = $expiration - time();
// Prevent us from even passing a negative ttl'd item to redis,// since it will just round up to zero and cache forever.if ($ttl < 1) {
returntrue;
}
return$this->redis->setex($this->makeKeyString($key), $ttl, $store);
}
}
SETEX is deprecated
Could you please update the code to support SET ?
https://github.com/tedious/Stash/blob/main/src/Stash/Driver/Redis.php#L213
The text was updated successfully, but these errors were encountered: