protected function resolveCacheLifetime($lifetime): DateTime
    {
        if ($lifetime instanceof DateTime) {
            return $lifetime;
        }

        if (is_int($lifetime)) {
            return Carbon::now()->addMinutes($lifetime);
        }
    }
protected function resolveCacheLifetime($lifetime): DateTime
    {
        if ($lifetime instanceof DateTime) {
            return $lifetime;
        }

        if (is_int($lifetime)) {
            return Carbon::now()->addMinutes($lifetime);
        }
    }
protected function resolveCacheLifetime ( $ lifetime ) : DateTime { if ( $ lifetime instanceof DateTime ) { return $ lifetime ; } if ( is_int ( $ lifetime ) ) { return Carbon :: now ( ) -> addMinutes ( $ lifetime ) ; } }
Resolve cache lifetime.

@param  int|DateTime
@return \Carbon\Carbon
Resolve cache lifetime .