Cache interface

表示快取的介面。

方法

createOrUpdate(string, string, string, CacheContract, CacheCreateOrUpdateOptionalParams)

建立或更新要用於 Api 管理實例的外部快取。

delete(string, string, string, string, CacheDeleteOptionalParams)

刪除特定的快取。

get(string, string, string, CacheGetOptionalParams)

取得其識別碼所指定之快取的詳細數據。

getEntityTag(string, string, string, CacheGetEntityTagOptionalParams)

取得其標識碼所指定快取的實體狀態 (Etag) 版本。

listByService(string, string, CacheListByServiceOptionalParams)

列出指定服務實例中所有外部快取的集合。

update(string, string, string, string, CacheUpdateParameters, CacheUpdateOptionalParams)

更新其識別碼所指定之快取的詳細數據。

方法詳細資料

createOrUpdate(string, string, string, CacheContract, CacheCreateOrUpdateOptionalParams)

建立或更新要用於 Api 管理實例的外部快取。

function createOrUpdate(resourceGroupName: string, serviceName: string, cacheId: string, parameters: CacheContract, options?: CacheCreateOrUpdateOptionalParams): Promise<CacheCreateOrUpdateResponse>

參數

resourceGroupName

string

資源群組的名稱。 名稱不區分大小寫。

serviceName

string

API 管理服務的名稱。

cacheId

string

快取實體的標識碼。 快取標識碼 (應該是 'default' 或有效的 Azure 區域標識符)。

parameters
CacheContract

建立或更新參數。

options
CacheCreateOrUpdateOptionalParams

選項參數。

傳回

delete(string, string, string, string, CacheDeleteOptionalParams)

刪除特定的快取。

function delete(resourceGroupName: string, serviceName: string, cacheId: string, ifMatch: string, options?: CacheDeleteOptionalParams): Promise<void>

參數

resourceGroupName

string

資源群組的名稱。 名稱不區分大小寫。

serviceName

string

API 管理服務的名稱。

cacheId

string

快取實體的標識碼。 快取標識碼 (應該是 'default' 或有效的 Azure 區域標識符)。

ifMatch

string

實體的 ETag。 ETag 應符合 GET 要求的標頭回應中目前的實體狀態,或應為 * 進行無條件更新。

options
CacheDeleteOptionalParams

選項參數。

傳回

Promise<void>

get(string, string, string, CacheGetOptionalParams)

取得其識別碼所指定之快取的詳細數據。

function get(resourceGroupName: string, serviceName: string, cacheId: string, options?: CacheGetOptionalParams): Promise<CacheGetResponse>

參數

resourceGroupName

string

資源群組的名稱。 名稱不區分大小寫。

serviceName

string

API 管理服務的名稱。

cacheId

string

快取實體的標識碼。 快取標識碼 (應該是 'default' 或有效的 Azure 區域標識符)。

options
CacheGetOptionalParams

選項參數。

傳回

Promise<CacheGetResponse>

getEntityTag(string, string, string, CacheGetEntityTagOptionalParams)

取得其標識碼所指定快取的實體狀態 (Etag) 版本。

function getEntityTag(resourceGroupName: string, serviceName: string, cacheId: string, options?: CacheGetEntityTagOptionalParams): Promise<CacheGetEntityTagHeaders>

參數

resourceGroupName

string

資源群組的名稱。 名稱不區分大小寫。

serviceName

string

API 管理服務的名稱。

cacheId

string

快取實體的標識碼。 快取標識碼 (應該是 'default' 或有效的 Azure 區域標識符)。

options
CacheGetEntityTagOptionalParams

選項參數。

傳回

listByService(string, string, CacheListByServiceOptionalParams)

列出指定服務實例中所有外部快取的集合。

function listByService(resourceGroupName: string, serviceName: string, options?: CacheListByServiceOptionalParams): PagedAsyncIterableIterator<CacheContract, CacheContract[], PageSettings>

參數

resourceGroupName

string

資源群組的名稱。 名稱不區分大小寫。

serviceName

string

API 管理服務的名稱。

options
CacheListByServiceOptionalParams

選項參數。

傳回

update(string, string, string, string, CacheUpdateParameters, CacheUpdateOptionalParams)

更新其識別碼所指定之快取的詳細數據。

function update(resourceGroupName: string, serviceName: string, cacheId: string, ifMatch: string, parameters: CacheUpdateParameters, options?: CacheUpdateOptionalParams): Promise<CacheUpdateResponse>

參數

resourceGroupName

string

資源群組的名稱。 名稱不區分大小寫。

serviceName

string

API 管理服務的名稱。

cacheId

string

快取實體的標識碼。 快取標識碼 (應該是 'default' 或有效的 Azure 區域標識符)。

ifMatch

string

實體的 ETag。 ETag 應符合 GET 要求的標頭回應中目前的實體狀態,或應為 * 進行無條件更新。

parameters
CacheUpdateParameters

更新參數。

options
CacheUpdateOptionalParams

選項參數。

傳回