你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Caches interface

表示缓存的接口。

方法

beginCreateOrUpdate(string, string, Cache, CachesCreateOrUpdateOptionalParams)

创建或更新缓存。

beginCreateOrUpdateAndWait(string, string, Cache, CachesCreateOrUpdateOptionalParams)

创建或更新缓存。

beginDebugInfo(string, string, CachesDebugInfoOptionalParams)

告知缓存编写生成调试信息以支持进行处理。

beginDebugInfoAndWait(string, string, CachesDebugInfoOptionalParams)

告知缓存编写生成调试信息以支持进行处理。

beginDelete(string, string, CachesDeleteOptionalParams)

计划要删除的缓存。

beginDeleteAndWait(string, string, CachesDeleteOptionalParams)

计划要删除的缓存。

beginFlush(string, string, CachesFlushOptionalParams)

告知缓存将所有脏数据写入存储目标(s)。 在刷新期间,客户端将看到返回的错误,直到刷新完成。

beginFlushAndWait(string, string, CachesFlushOptionalParams)

告知缓存将所有脏数据写入存储目标(s)。 在刷新期间,客户端将看到返回的错误,直到刷新完成。

beginPausePrimingJob(string, string, CachesPausePrimingJobOptionalParams)

计划暂停启动作业。

beginPausePrimingJobAndWait(string, string, CachesPausePrimingJobOptionalParams)

计划暂停启动作业。

beginResumePrimingJob(string, string, CachesResumePrimingJobOptionalParams)

恢复暂停启动作业。

beginResumePrimingJobAndWait(string, string, CachesResumePrimingJobOptionalParams)

恢复暂停启动作业。

beginSpaceAllocation(string, string, CachesSpaceAllocationOptionalParams)

更新缓存空间分配。

beginSpaceAllocationAndWait(string, string, CachesSpaceAllocationOptionalParams)

更新缓存空间分配。

beginStart(string, string, CachesStartOptionalParams)

指示停止状态缓存转换为活动状态。

beginStartAndWait(string, string, CachesStartOptionalParams)

指示停止状态缓存转换为活动状态。

beginStartPrimingJob(string, string, CachesStartPrimingJobOptionalParams)

创建启动作业。 仅当缓存正常时,才允许此作。

beginStartPrimingJobAndWait(string, string, CachesStartPrimingJobOptionalParams)

创建启动作业。 仅当缓存正常时,才允许此作。

beginStop(string, string, CachesStopOptionalParams)

告知活动缓存转换为“已停止”状态。

beginStopAndWait(string, string, CachesStopOptionalParams)

告知活动缓存转换为“已停止”状态。

beginStopPrimingJob(string, string, CachesStopPrimingJobOptionalParams)

计划启动作业以删除。

beginStopPrimingJobAndWait(string, string, CachesStopPrimingJobOptionalParams)

计划启动作业以删除。

beginUpdate(string, string, CachesUpdateOptionalParams)

更新缓存实例。

beginUpdateAndWait(string, string, CachesUpdateOptionalParams)

更新缓存实例。

beginUpgradeFirmware(string, string, CachesUpgradeFirmwareOptionalParams)

如果新版本可用,请升级缓存的固件。 否则,此作不起作用。

beginUpgradeFirmwareAndWait(string, string, CachesUpgradeFirmwareOptionalParams)

如果新版本可用,请升级缓存的固件。 否则,此作不起作用。

get(string, string, CachesGetOptionalParams)

返回缓存。

list(CachesListOptionalParams)

返回用户有权访问的订阅下的所有缓存。

listByResourceGroup(string, CachesListByResourceGroupOptionalParams)

返回用户有权访问的资源组下的所有缓存。

方法详细信息

beginCreateOrUpdate(string, string, Cache, CachesCreateOrUpdateOptionalParams)

创建或更新缓存。

function beginCreateOrUpdate(resourceGroupName: string, cacheName: string, cache: Cache, options?: CachesCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<Cache>, Cache>>

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

cacheName

string

缓存的名称。 名称长度不得大于 80,字符必须来自 [-0-9a-zA-Z_] 字符类。

cache
Cache

包含新缓存的用户可选择属性的对象。 如果包含只读属性,它们必须与这些属性的现有值匹配。

options
CachesCreateOrUpdateOptionalParams

选项参数。

返回

Promise<@azure/core-lro.SimplePollerLike<OperationState<Cache>, Cache>>

beginCreateOrUpdateAndWait(string, string, Cache, CachesCreateOrUpdateOptionalParams)

创建或更新缓存。

function beginCreateOrUpdateAndWait(resourceGroupName: string, cacheName: string, cache: Cache, options?: CachesCreateOrUpdateOptionalParams): Promise<Cache>

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

cacheName

string

缓存的名称。 名称长度不得大于 80,字符必须来自 [-0-9a-zA-Z_] 字符类。

cache
Cache

包含新缓存的用户可选择属性的对象。 如果包含只读属性,它们必须与这些属性的现有值匹配。

options
CachesCreateOrUpdateOptionalParams

选项参数。

返回

Promise<Cache>

beginDebugInfo(string, string, CachesDebugInfoOptionalParams)

告知缓存编写生成调试信息以支持进行处理。

function beginDebugInfo(resourceGroupName: string, cacheName: string, options?: CachesDebugInfoOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

cacheName

string

缓存的名称。 名称长度不得大于 80,字符必须来自 [-0-9a-zA-Z_] 字符类。

options
CachesDebugInfoOptionalParams

选项参数。

返回

Promise<@azure/core-lro.SimplePollerLike<OperationState<void>, void>>

beginDebugInfoAndWait(string, string, CachesDebugInfoOptionalParams)

告知缓存编写生成调试信息以支持进行处理。

function beginDebugInfoAndWait(resourceGroupName: string, cacheName: string, options?: CachesDebugInfoOptionalParams): Promise<void>

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

cacheName

string

缓存的名称。 名称长度不得大于 80,字符必须来自 [-0-9a-zA-Z_] 字符类。

options
CachesDebugInfoOptionalParams

选项参数。

返回

Promise<void>

beginDelete(string, string, CachesDeleteOptionalParams)

计划要删除的缓存。

function beginDelete(resourceGroupName: string, cacheName: string, options?: CachesDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

cacheName

string

缓存的名称。 名称长度不得大于 80,字符必须来自 [-0-9a-zA-Z_] 字符类。

options
CachesDeleteOptionalParams

选项参数。

返回

Promise<@azure/core-lro.SimplePollerLike<OperationState<void>, void>>

beginDeleteAndWait(string, string, CachesDeleteOptionalParams)

计划要删除的缓存。

function beginDeleteAndWait(resourceGroupName: string, cacheName: string, options?: CachesDeleteOptionalParams): Promise<void>

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

cacheName

string

缓存的名称。 名称长度不得大于 80,字符必须来自 [-0-9a-zA-Z_] 字符类。

options
CachesDeleteOptionalParams

选项参数。

返回

Promise<void>

beginFlush(string, string, CachesFlushOptionalParams)

告知缓存将所有脏数据写入存储目标(s)。 在刷新期间,客户端将看到返回的错误,直到刷新完成。

function beginFlush(resourceGroupName: string, cacheName: string, options?: CachesFlushOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

cacheName

string

缓存的名称。 名称长度不得大于 80,字符必须来自 [-0-9a-zA-Z_] 字符类。

options
CachesFlushOptionalParams

选项参数。

返回

Promise<@azure/core-lro.SimplePollerLike<OperationState<void>, void>>

beginFlushAndWait(string, string, CachesFlushOptionalParams)

告知缓存将所有脏数据写入存储目标(s)。 在刷新期间,客户端将看到返回的错误,直到刷新完成。

function beginFlushAndWait(resourceGroupName: string, cacheName: string, options?: CachesFlushOptionalParams): Promise<void>

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

cacheName

string

缓存的名称。 名称长度不得大于 80,字符必须来自 [-0-9a-zA-Z_] 字符类。

options
CachesFlushOptionalParams

选项参数。

返回

Promise<void>

beginPausePrimingJob(string, string, CachesPausePrimingJobOptionalParams)

计划暂停启动作业。

function beginPausePrimingJob(resourceGroupName: string, cacheName: string, options?: CachesPausePrimingJobOptionalParams): Promise<SimplePollerLike<OperationState<CachesPausePrimingJobHeaders>, CachesPausePrimingJobHeaders>>

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

cacheName

string

缓存的名称。 名称长度不得大于 80,字符必须来自 [-0-9a-zA-Z_] 字符类。

options
CachesPausePrimingJobOptionalParams

选项参数。

返回

Promise<@azure/core-lro.SimplePollerLike<OperationState<CachesPausePrimingJobHeaders>, CachesPausePrimingJobHeaders>>

beginPausePrimingJobAndWait(string, string, CachesPausePrimingJobOptionalParams)

计划暂停启动作业。

function beginPausePrimingJobAndWait(resourceGroupName: string, cacheName: string, options?: CachesPausePrimingJobOptionalParams): Promise<CachesPausePrimingJobHeaders>

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

cacheName

string

缓存的名称。 名称长度不得大于 80,字符必须来自 [-0-9a-zA-Z_] 字符类。

options
CachesPausePrimingJobOptionalParams

选项参数。

返回

beginResumePrimingJob(string, string, CachesResumePrimingJobOptionalParams)

恢复暂停启动作业。

function beginResumePrimingJob(resourceGroupName: string, cacheName: string, options?: CachesResumePrimingJobOptionalParams): Promise<SimplePollerLike<OperationState<CachesResumePrimingJobHeaders>, CachesResumePrimingJobHeaders>>

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

cacheName

string

缓存的名称。 名称长度不得大于 80,字符必须来自 [-0-9a-zA-Z_] 字符类。

options
CachesResumePrimingJobOptionalParams

选项参数。

返回

Promise<@azure/core-lro.SimplePollerLike<OperationState<CachesResumePrimingJobHeaders>, CachesResumePrimingJobHeaders>>

beginResumePrimingJobAndWait(string, string, CachesResumePrimingJobOptionalParams)

恢复暂停启动作业。

function beginResumePrimingJobAndWait(resourceGroupName: string, cacheName: string, options?: CachesResumePrimingJobOptionalParams): Promise<CachesResumePrimingJobHeaders>

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

cacheName

string

缓存的名称。 名称长度不得大于 80,字符必须来自 [-0-9a-zA-Z_] 字符类。

options
CachesResumePrimingJobOptionalParams

选项参数。

返回

beginSpaceAllocation(string, string, CachesSpaceAllocationOptionalParams)

更新缓存空间分配。

function beginSpaceAllocation(resourceGroupName: string, cacheName: string, options?: CachesSpaceAllocationOptionalParams): Promise<SimplePollerLike<OperationState<CachesSpaceAllocationHeaders>, CachesSpaceAllocationHeaders>>

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

cacheName

string

缓存的名称。 名称长度不得大于 80,字符必须来自 [-0-9a-zA-Z_] 字符类。

options
CachesSpaceAllocationOptionalParams

选项参数。

返回

Promise<@azure/core-lro.SimplePollerLike<OperationState<CachesSpaceAllocationHeaders>, CachesSpaceAllocationHeaders>>

beginSpaceAllocationAndWait(string, string, CachesSpaceAllocationOptionalParams)

更新缓存空间分配。

function beginSpaceAllocationAndWait(resourceGroupName: string, cacheName: string, options?: CachesSpaceAllocationOptionalParams): Promise<CachesSpaceAllocationHeaders>

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

cacheName

string

缓存的名称。 名称长度不得大于 80,字符必须来自 [-0-9a-zA-Z_] 字符类。

options
CachesSpaceAllocationOptionalParams

选项参数。

返回

beginStart(string, string, CachesStartOptionalParams)

指示停止状态缓存转换为活动状态。

function beginStart(resourceGroupName: string, cacheName: string, options?: CachesStartOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

cacheName

string

缓存的名称。 名称长度不得大于 80,字符必须来自 [-0-9a-zA-Z_] 字符类。

options
CachesStartOptionalParams

选项参数。

返回

Promise<@azure/core-lro.SimplePollerLike<OperationState<void>, void>>

beginStartAndWait(string, string, CachesStartOptionalParams)

指示停止状态缓存转换为活动状态。

function beginStartAndWait(resourceGroupName: string, cacheName: string, options?: CachesStartOptionalParams): Promise<void>

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

cacheName

string

缓存的名称。 名称长度不得大于 80,字符必须来自 [-0-9a-zA-Z_] 字符类。

options
CachesStartOptionalParams

选项参数。

返回

Promise<void>

beginStartPrimingJob(string, string, CachesStartPrimingJobOptionalParams)

创建启动作业。 仅当缓存正常时,才允许此作。

function beginStartPrimingJob(resourceGroupName: string, cacheName: string, options?: CachesStartPrimingJobOptionalParams): Promise<SimplePollerLike<OperationState<CachesStartPrimingJobHeaders>, CachesStartPrimingJobHeaders>>

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

cacheName

string

缓存的名称。 名称长度不得大于 80,字符必须来自 [-0-9a-zA-Z_] 字符类。

options
CachesStartPrimingJobOptionalParams

选项参数。

返回

Promise<@azure/core-lro.SimplePollerLike<OperationState<CachesStartPrimingJobHeaders>, CachesStartPrimingJobHeaders>>

beginStartPrimingJobAndWait(string, string, CachesStartPrimingJobOptionalParams)

创建启动作业。 仅当缓存正常时,才允许此作。

function beginStartPrimingJobAndWait(resourceGroupName: string, cacheName: string, options?: CachesStartPrimingJobOptionalParams): Promise<CachesStartPrimingJobHeaders>

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

cacheName

string

缓存的名称。 名称长度不得大于 80,字符必须来自 [-0-9a-zA-Z_] 字符类。

options
CachesStartPrimingJobOptionalParams

选项参数。

返回

beginStop(string, string, CachesStopOptionalParams)

告知活动缓存转换为“已停止”状态。

function beginStop(resourceGroupName: string, cacheName: string, options?: CachesStopOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

cacheName

string

缓存的名称。 名称长度不得大于 80,字符必须来自 [-0-9a-zA-Z_] 字符类。

options
CachesStopOptionalParams

选项参数。

返回

Promise<@azure/core-lro.SimplePollerLike<OperationState<void>, void>>

beginStopAndWait(string, string, CachesStopOptionalParams)

告知活动缓存转换为“已停止”状态。

function beginStopAndWait(resourceGroupName: string, cacheName: string, options?: CachesStopOptionalParams): Promise<void>

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

cacheName

string

缓存的名称。 名称长度不得大于 80,字符必须来自 [-0-9a-zA-Z_] 字符类。

options
CachesStopOptionalParams

选项参数。

返回

Promise<void>

beginStopPrimingJob(string, string, CachesStopPrimingJobOptionalParams)

计划启动作业以删除。

function beginStopPrimingJob(resourceGroupName: string, cacheName: string, options?: CachesStopPrimingJobOptionalParams): Promise<SimplePollerLike<OperationState<CachesStopPrimingJobHeaders>, CachesStopPrimingJobHeaders>>

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

cacheName

string

缓存的名称。 名称长度不得大于 80,字符必须来自 [-0-9a-zA-Z_] 字符类。

options
CachesStopPrimingJobOptionalParams

选项参数。

返回

Promise<@azure/core-lro.SimplePollerLike<OperationState<CachesStopPrimingJobHeaders>, CachesStopPrimingJobHeaders>>

beginStopPrimingJobAndWait(string, string, CachesStopPrimingJobOptionalParams)

计划启动作业以删除。

function beginStopPrimingJobAndWait(resourceGroupName: string, cacheName: string, options?: CachesStopPrimingJobOptionalParams): Promise<CachesStopPrimingJobHeaders>

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

cacheName

string

缓存的名称。 名称长度不得大于 80,字符必须来自 [-0-9a-zA-Z_] 字符类。

options
CachesStopPrimingJobOptionalParams

选项参数。

返回

beginUpdate(string, string, CachesUpdateOptionalParams)

更新缓存实例。

function beginUpdate(resourceGroupName: string, cacheName: string, options?: CachesUpdateOptionalParams): Promise<SimplePollerLike<OperationState<Cache>, Cache>>

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

cacheName

string

缓存的名称。 名称长度不得大于 80,字符必须来自 [-0-9a-zA-Z_] 字符类。

options
CachesUpdateOptionalParams

选项参数。

返回

Promise<@azure/core-lro.SimplePollerLike<OperationState<Cache>, Cache>>

beginUpdateAndWait(string, string, CachesUpdateOptionalParams)

更新缓存实例。

function beginUpdateAndWait(resourceGroupName: string, cacheName: string, options?: CachesUpdateOptionalParams): Promise<Cache>

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

cacheName

string

缓存的名称。 名称长度不得大于 80,字符必须来自 [-0-9a-zA-Z_] 字符类。

options
CachesUpdateOptionalParams

选项参数。

返回

Promise<Cache>

beginUpgradeFirmware(string, string, CachesUpgradeFirmwareOptionalParams)

如果新版本可用,请升级缓存的固件。 否则,此作不起作用。

function beginUpgradeFirmware(resourceGroupName: string, cacheName: string, options?: CachesUpgradeFirmwareOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

cacheName

string

缓存的名称。 名称长度不得大于 80,字符必须来自 [-0-9a-zA-Z_] 字符类。

options
CachesUpgradeFirmwareOptionalParams

选项参数。

返回

Promise<@azure/core-lro.SimplePollerLike<OperationState<void>, void>>

beginUpgradeFirmwareAndWait(string, string, CachesUpgradeFirmwareOptionalParams)

如果新版本可用,请升级缓存的固件。 否则,此作不起作用。

function beginUpgradeFirmwareAndWait(resourceGroupName: string, cacheName: string, options?: CachesUpgradeFirmwareOptionalParams): Promise<void>

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

cacheName

string

缓存的名称。 名称长度不得大于 80,字符必须来自 [-0-9a-zA-Z_] 字符类。

options
CachesUpgradeFirmwareOptionalParams

选项参数。

返回

Promise<void>

get(string, string, CachesGetOptionalParams)

返回缓存。

function get(resourceGroupName: string, cacheName: string, options?: CachesGetOptionalParams): Promise<Cache>

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

cacheName

string

缓存的名称。 名称长度不得大于 80,字符必须来自 [-0-9a-zA-Z_] 字符类。

options
CachesGetOptionalParams

选项参数。

返回

Promise<Cache>

list(CachesListOptionalParams)

返回用户有权访问的订阅下的所有缓存。

function list(options?: CachesListOptionalParams): PagedAsyncIterableIterator<Cache, Cache[], PageSettings>

参数

options
CachesListOptionalParams

选项参数。

返回

listByResourceGroup(string, CachesListByResourceGroupOptionalParams)

返回用户有权访问的资源组下的所有缓存。

function listByResourceGroup(resourceGroupName: string, options?: CachesListByResourceGroupOptionalParams): PagedAsyncIterableIterator<Cache, Cache[], PageSettings>

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

options
CachesListByResourceGroupOptionalParams

选项参数。

返回