MatthiasMullie\Scrapbook\Adapters\Apc::ttl PHP Method

ttl() protected method

APC expects true TTL, not expiration timestamp.
protected ttl ( integer $expire ) : integer
$expire integer
return integer TTL in seconds
    protected function ttl($expire)
    {
        // relative time in seconds, <30 days
        if ($expire < 30 * 24 * 60 * 60) {
            $expire += time();
        }
        return $expire ? $expire - time() : 0;
    }