src/Charcoal/Cache/CacheConfig.php
public function setDefaultTtl($ttl)
    {
        if (!is_numeric($ttl)) {
            throw new InvalidArgumentException(
                'TTL must be an integer (seconds)'
            );
        }

        $this->defaultTtl = intval($ttl);
        return $this;
    }
public function setDefaultTtl($ttl)
    {
        if (!is_numeric($ttl)) {
            throw new InvalidArgumentException(
                'TTL must be an integer (seconds)'
            );
        }

        $this->defaultTtl = intval($ttl);
        return $this;
    }
public function setDefaultTtl ( $ ttl ) { if ( ! is_numeric ( $ ttl ) ) { throw new InvalidArgumentException ( 'TTL must be an integer (seconds)' ) ; } $ this -> defaultTtl = intval ( $ ttl ) ; return $ this ; }
Set the default time-to-live for cached items.

@param  mixed $ttl A number representing time in seconds.
@throws InvalidArgumentException If the TTL is not numeric.
@return CacheConfig Chainable
Set the default time - to - live for cached items .