protected function handleTtl($key, $expireSetTs, $expireSec)
    {
        $ttl = $expireSetTs + $expireSec - time();
        if ($ttl <= 0) {
            unset($this->store[$key]);

            throw new KeyNotFoundException();
        }

        return $ttl;
    }