public function remember($lifetime = null)
    {
        $this->shouldCache = true;

        // Make sure something other than the default value (null) is given.
        // Then resolve the DateTime instance from the given value.
        if ($lifetime !== null) {
            $this->cacheLifetime = $this->resolveCacheLifetime($lifetime);
        }

        return $this;
    }
public function remember($lifetime = null)
    {
        $this->shouldCache = true;

        // Make sure something other than the default value (null) is given.
        // Then resolve the DateTime instance from the given value.
        if ($lifetime !== null) {
            $this->cacheLifetime = $this->resolveCacheLifetime($lifetime);
        }

        return $this;
    }
public function remember ( $ lifetime = null ) { $ this -> shouldCache = true ; // Make sure something other than the default value (null) is given. // Then resolve the DateTime instance from the given value. if ( $ lifetime !== null ) { $ this -> cacheLifetime = $ this -> resolveCacheLifetime ( $ lifetime ) ; } return $ this ; }
Cache the current views count.

@param  \DateTime|int|null  $lifetime
@return $this
Cache the current views count .