public function setExpireDate(DateTimeInterface $dt)
    {
        $this->expire_time = (int)$dt->format('U') - time();
        return $this;
    }
public function setExpireDate(DateTimeInterface $dt)
    {
        $this->expire_time = (int)$dt->format('U') - time();
        return $this;
    }
public function setExpireDate ( DateTimeInterface $ dt ) { $ this -> expire_time = ( int ) $ dt -> format ( 'U' ) - time ( ) ; return $ this ; }
Set the exact moment when the cache should expire.
@param DateTimeInterface $dt When the cache should expire
@return CachePolicy Provides fluent interface
Set the exact moment when the cache should expire .