MemoryDistributedCache 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
public ref class MemoryDistributedCache : Microsoft::Extensions::Caching::Distributed::IDistributedCache
public class MemoryDistributedCache : Microsoft.Extensions.Caching.Distributed.IDistributedCache
type MemoryDistributedCache = class
interface IDistributedCache
Public Class MemoryDistributedCache
Implements IDistributedCache
- 继承
-
MemoryDistributedCache
- 实现
构造函数
方法
| 名称 | 说明 |
|---|---|
| Get(String) |
从字节数组中获取与键 IMemoryCache 关联的指定项。 |
| GetAsync(String, CancellationToken) |
以异步方式从 IMemoryCache 字节数组中获取与键关联的指定项。 |
| Refresh(String) |
从中 IMemoryCache刷新与键关联的指定项。 |
| RefreshAsync(String, CancellationToken) |
从中 IMemoryCache异步刷新与键关联的指定项。 |
| Remove(String) |
从 < |
| RemoveAsync(String, CancellationToken) |
从中 IMemoryCache异步删除与键关联的指定项。 |
| Set(String, Byte[], DistributedCacheEntryOptions) |
将与字节数组中的 IMemoryCache 键关联的指定项设置为字节数组。 |
| SetAsync(String, Byte[], DistributedCacheEntryOptions, CancellationToken) |
异步设置与字节数组中的 IMemoryCache 键关联的指定项。 |
扩展方法
| 名称 | 说明 |
|---|---|
| GetString(IDistributedCache, String) |
从具有指定键的指定缓存中获取字符串。 |
| GetStringAsync(IDistributedCache, String, CancellationToken) |
使用指定的键从指定的缓存中异步获取字符串。 |
| Set(IDistributedCache, String, Byte[]) |
使用指定的键设置指定缓存中的字节序列。 |
| SetAsync(IDistributedCache, String, Byte[], CancellationToken) |
使用指定的键异步设置指定缓存中的字节序列。 |
| SetString(IDistributedCache, String, String, DistributedCacheEntryOptions) |
使用指定的键设置指定缓存中的字符串。 |
| SetString(IDistributedCache, String, String) |
使用指定的键设置指定缓存中的字符串。 |
| SetStringAsync(IDistributedCache, String, String, CancellationToken) |
使用指定的键异步设置指定缓存中的字符串。 |
| SetStringAsync(IDistributedCache, String, String, DistributedCacheEntryOptions, CancellationToken) |
使用指定的键异步设置指定缓存中的字符串。 |