通过


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

StorageTargetOperations interface

表示 StorageTargetOperations 的接口。

方法

beginFlush(string, string, string, StorageTargetFlushOptionalParams)

告知缓存将所有脏数据写入存储目标的后端存储。 对此存储目标的命名空间的客户端请求将返回错误,直到刷新作完成。

beginFlushAndWait(string, string, string, StorageTargetFlushOptionalParams)

告知缓存将所有脏数据写入存储目标的后端存储。 对此存储目标的命名空间的客户端请求将返回错误,直到刷新作完成。

beginInvalidate(string, string, string, StorageTargetInvalidateOptionalParams)

使存储目标的所有缓存数据失效。 缓存的文件在下一个请求中被丢弃并从后端提取。

beginInvalidateAndWait(string, string, string, StorageTargetInvalidateOptionalParams)

使存储目标的所有缓存数据失效。 缓存的文件在下一个请求中被丢弃并从后端提取。

beginResume(string, string, string, StorageTargetResumeOptionalParams)

恢复对以前挂起的存储目标的客户端访问。

beginResumeAndWait(string, string, string, StorageTargetResumeOptionalParams)

恢复对以前挂起的存储目标的客户端访问。

beginSuspend(string, string, string, StorageTargetSuspendOptionalParams)

暂停对存储目标的客户端访问。

beginSuspendAndWait(string, string, string, StorageTargetSuspendOptionalParams)

暂停对存储目标的客户端访问。

方法详细信息

beginFlush(string, string, string, StorageTargetFlushOptionalParams)

告知缓存将所有脏数据写入存储目标的后端存储。 对此存储目标的命名空间的客户端请求将返回错误,直到刷新作完成。

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

参数

resourceGroupName

string

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

cacheName

string

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

storageTargetName

string

存储目标的名称。

options
StorageTargetFlushOptionalParams

选项参数。

返回

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

beginFlushAndWait(string, string, string, StorageTargetFlushOptionalParams)

告知缓存将所有脏数据写入存储目标的后端存储。 对此存储目标的命名空间的客户端请求将返回错误,直到刷新作完成。

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

参数

resourceGroupName

string

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

cacheName

string

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

storageTargetName

string

存储目标的名称。

options
StorageTargetFlushOptionalParams

选项参数。

返回

Promise<void>

beginInvalidate(string, string, string, StorageTargetInvalidateOptionalParams)

使存储目标的所有缓存数据失效。 缓存的文件在下一个请求中被丢弃并从后端提取。

function beginInvalidate(resourceGroupName: string, cacheName: string, storageTargetName: string, options?: StorageTargetInvalidateOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>

参数

resourceGroupName

string

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

cacheName

string

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

storageTargetName

string

存储目标的名称。

options
StorageTargetInvalidateOptionalParams

选项参数。

返回

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

beginInvalidateAndWait(string, string, string, StorageTargetInvalidateOptionalParams)

使存储目标的所有缓存数据失效。 缓存的文件在下一个请求中被丢弃并从后端提取。

function beginInvalidateAndWait(resourceGroupName: string, cacheName: string, storageTargetName: string, options?: StorageTargetInvalidateOptionalParams): Promise<void>

参数

resourceGroupName

string

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

cacheName

string

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

storageTargetName

string

存储目标的名称。

options
StorageTargetInvalidateOptionalParams

选项参数。

返回

Promise<void>

beginResume(string, string, string, StorageTargetResumeOptionalParams)

恢复对以前挂起的存储目标的客户端访问。

function beginResume(resourceGroupName: string, cacheName: string, storageTargetName: string, options?: StorageTargetResumeOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>

参数

resourceGroupName

string

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

cacheName

string

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

storageTargetName

string

存储目标的名称。

options
StorageTargetResumeOptionalParams

选项参数。

返回

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

beginResumeAndWait(string, string, string, StorageTargetResumeOptionalParams)

恢复对以前挂起的存储目标的客户端访问。

function beginResumeAndWait(resourceGroupName: string, cacheName: string, storageTargetName: string, options?: StorageTargetResumeOptionalParams): Promise<void>

参数

resourceGroupName

string

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

cacheName

string

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

storageTargetName

string

存储目标的名称。

options
StorageTargetResumeOptionalParams

选项参数。

返回

Promise<void>

beginSuspend(string, string, string, StorageTargetSuspendOptionalParams)

暂停对存储目标的客户端访问。

function beginSuspend(resourceGroupName: string, cacheName: string, storageTargetName: string, options?: StorageTargetSuspendOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>

参数

resourceGroupName

string

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

cacheName

string

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

storageTargetName

string

存储目标的名称。

options
StorageTargetSuspendOptionalParams

选项参数。

返回

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

beginSuspendAndWait(string, string, string, StorageTargetSuspendOptionalParams)

暂停对存储目标的客户端访问。

function beginSuspendAndWait(resourceGroupName: string, cacheName: string, storageTargetName: string, options?: StorageTargetSuspendOptionalParams): Promise<void>

参数

resourceGroupName

string

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

cacheName

string

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

storageTargetName

string

存储目标的名称。

options
StorageTargetSuspendOptionalParams

选项参数。

返回

Promise<void>