public function clear($cache = null)
    {
        if ($cache === null) {
            $cache = $this->cache_name;
        }
        $cache = self::encodeCache($cache);
        $url = "projects/{$this->project_id}/caches/$cache/clear";
        $params = array();
        $this->setJsonHeaders();
        return self::json_decode($this->apiCall(self::POST, $url, $params));
    }
public function clear($cache = null)
    {
        if ($cache === null) {
            $cache = $this->cache_name;
        }
        $cache = self::encodeCache($cache);
        $url = "projects/{$this->project_id}/caches/$cache/clear";
        $params = array();
        $this->setJsonHeaders();
        return self::json_decode($this->apiCall(self::POST, $url, $params));
    }
public function clear ( $ cache = null ) { if ( $ cache === null ) { $ cache = $ this -> cache_name ; } $ cache = self :: encodeCache ( $ cache ) ; $ url = "projects/{$this->project_id}/caches/$cache/clear" ; $ params = array ( ) ; $ this -> setJsonHeaders ( ) ; return self :: json_decode ( $ this -> apiCall ( self :: POST , $ url , $ params ) ) ; }
Clear a Cache
Delete all items in a cache. This cannot be undone.

@param string|null $cache Cache name or null
@return mixed
Clear a Cache Delete all items in a cache . This cannot be undone .