LeagueWrap\Api\AbstractApi::remember PHP Method

remember() public method

Leave it empty (or null) if you want to use the default set for each api request.
public remember ( integer $seconds = null, LeagueWrap\CacheInterface $cache = null )
$seconds integer
$cache LeagueWrap\CacheInterface
    public function remember($seconds = null, CacheInterface $cache = null)
    {
        if (is_null($cache)) {
            // use the built in cache interface
            $cache = new Cache();
        }
        $this->cache = $cache;
        if (is_null($seconds)) {
            $this->seconds = $this->defaultRemember;
        } else {
            $this->seconds = $seconds;
        }
        return $this;
    }