public function __construct($redis, $lifetime = 86400) { $this->redis = $redis; $this->lifetime = (int) $lifetime; }