IBufferDistributedCache 接口  
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
表示序列化值的分布式缓存,支持低分配数据传输。
public interface class IBufferDistributedCache : Microsoft::Extensions::Caching::Distributed::IDistributedCache
	public interface IBufferDistributedCache : Microsoft.Extensions.Caching.Distributed.IDistributedCache
	type IBufferDistributedCache = interface
    interface IDistributedCache
	Public Interface IBufferDistributedCache
Implements IDistributedCache
	- 派生
 
- 实现
 
方法
| Get(String) | 
		 获取具有给定键的值。 (继承自 IDistributedCache) | 
        	
| GetAsync(String, CancellationToken) | 
		 获取具有给定键的值。 (继承自 IDistributedCache) | 
        	
| Refresh(String) | 
		 根据缓存中的键刷新值,重置其滑动过期超时(如果有)。 (继承自 IDistributedCache) | 
        	
| RefreshAsync(String, CancellationToken) | 
		 根据缓存中的键刷新值,重置其滑动过期超时(如果有)。 (继承自 IDistributedCache) | 
        	
| Remove(String) | 
		 删除具有给定键的值。 (继承自 IDistributedCache) | 
        	
| RemoveAsync(String, CancellationToken) | 
		 删除具有给定键的值。 (继承自 IDistributedCache) | 
        	
| Set(String, Byte[], DistributedCacheEntryOptions) | 
		 使用给定键设置一个值。 (继承自 IDistributedCache) | 
        	
| Set(String, ReadOnlySequence<Byte>, DistributedCacheEntryOptions) | 
		 设置或覆盖缓存项。  | 
        	
| SetAsync(String, Byte[], DistributedCacheEntryOptions, CancellationToken) | 
		 使用给定键设置值。 (继承自 IDistributedCache) | 
        	
| SetAsync(String, ReadOnlySequence<Byte>, DistributedCacheEntryOptions, CancellationToken) | 
		 异步设置或覆盖缓存项。  | 
        	
| TryGet(String, IBufferWriter<Byte>) | 
		 尝试检索现有缓存项。  | 
        	
| TryGetAsync(String, IBufferWriter<Byte>, CancellationToken) | 
		 异步尝试检索现有缓存项。  | 
        	
扩展方法
| GetString(IDistributedCache, String) | 
		 从具有指定键的指定缓存中获取字符串。  | 
        	
| GetStringAsync(IDistributedCache, String, CancellationToken) | 
		 使用指定的键从指定的缓存中异步获取字符串。  | 
        	
| Set(IDistributedCache, String, Byte[]) | 
		 使用指定的键设置指定缓存中的字节序列。  | 
        	
| SetAsync(IDistributedCache, String, Byte[], CancellationToken) | 
		 使用指定的键异步设置指定缓存中的字节序列。  | 
        	
| SetString(IDistributedCache, String, String) | 
		 使用指定的键设置指定缓存中的字符串。  | 
        	
| SetString(IDistributedCache, String, String, DistributedCacheEntryOptions) | 
		 使用指定的键设置指定缓存中的字符串。  | 
        	
| SetStringAsync(IDistributedCache, String, String, DistributedCacheEntryOptions, CancellationToken) | 
		 使用指定的键异步设置指定缓存中的字符串。  | 
        	
| SetStringAsync(IDistributedCache, String, String, CancellationToken) | 
		 使用指定的键异步设置指定缓存中的字符串。  |