public function destroy($id): bool
{ if (isset($this->redis,
$this->lockKey
)) { if (($result =
$this->redis->
del($this->keyPrefix .
$id)) !== 1
) { $this->logger->
debug('Session: Redis::del() expected to return 1, got ' .
var_export($result, true
) . ' instead.'
);
} return $this->
destroyCookie();
} return false;
} /**
* Cleans up expired sessions.
*
* @param int $max_lifetime Sessions that have not updated
* for the last max_lifetime seconds will be removed.
*
* @return false|int Returns the number of deleted sessions on success, or false on failure.
*/