public function cache($flag, $expiry = null)
    {
        $this->cache = (boolean) $flag;

        if (!is_null($expiry)) {
            $this->cacheExpiry = $expiry;
        }
        return $this;
    }