Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
IBufferDistributedCache Interface
Definition
- Namespace:
- Microsoft.Extensions.Caching.Distributed
- Assembly:
- Microsoft.Extensions.Caching.Abstractions.dll
- Package:
- Microsoft.Extensions.Caching.Abstractions v11.0.0-preview.5.26302.115
- Source:
- IBufferDistributedCache.cs
- Source:
- IBufferDistributedCache.cs
- Source:
- IBufferDistributedCache.cs
Important
Some information relates to prerelease product that may be substantially modified before itβs released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a distributed cache of serialized values, with support for low allocation data transfer.
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
- Derived
- Implements
Methods
| Name | Description |
|---|---|
| Get(String) |
Gets a value with the given key. (Inherited from IDistributedCache) |
| GetAsync(String, CancellationToken) |
Gets a value with the given key. (Inherited from IDistributedCache) |
| Refresh(String) |
Refreshes a value in the cache based on its key, resetting its sliding expiration timeout (if any). (Inherited from IDistributedCache) |
| RefreshAsync(String, CancellationToken) |
Refreshes a value in the cache based on its key, resetting its sliding expiration timeout (if any). (Inherited from IDistributedCache) |
| Remove(String) |
Removes the value with the given key. (Inherited from IDistributedCache) |
| RemoveAsync(String, CancellationToken) |
Removes the value with the given key. (Inherited from IDistributedCache) |
| Set(String, Byte[], DistributedCacheEntryOptions) |
Sets a value with the given key. (Inherited from IDistributedCache) |
| Set(String, ReadOnlySequence<Byte>, DistributedCacheEntryOptions) |
Sets or overwrites a cache item. |
| SetAsync(String, Byte[], DistributedCacheEntryOptions, CancellationToken) |
Sets the value with the given key. (Inherited from IDistributedCache) |
| SetAsync(String, ReadOnlySequence<Byte>, DistributedCacheEntryOptions, CancellationToken) |
Asynchronously sets or overwrites a cache entry. |
| TryGet(String, IBufferWriter<Byte>) |
Attempts to retrieve an existing cache item. |
| TryGetAsync(String, IBufferWriter<Byte>, CancellationToken) |
Asynchronously attempts to retrieve an existing cache entry. |
Extension Methods
| Name | Description |
|---|---|
| GetString(IDistributedCache, String) |
Gets a string from the specified cache with the specified key. |
| GetStringAsync(IDistributedCache, String, CancellationToken) |
Asynchronously gets a string from the specified cache with the specified key. |
| Set(IDistributedCache, String, Byte[]) |
Sets a sequence of bytes in the specified cache with the specified key. |
| SetAsync(IDistributedCache, String, Byte[], CancellationToken) |
Asynchronously sets a sequence of bytes in the specified cache with the specified key. |
| SetString(IDistributedCache, String, String, DistributedCacheEntryOptions) |
Sets a string in the specified cache with the specified key. |
| SetString(IDistributedCache, String, String) |
Sets a string in the specified cache with the specified key. |
| SetStringAsync(IDistributedCache, String, String, CancellationToken) |
Asynchronously sets a string in the specified cache with the specified key. |
| SetStringAsync(IDistributedCache, String, String, DistributedCacheEntryOptions, CancellationToken) |
Asynchronously sets a string in the specified cache with the specified key. |
Applies to
Feedback
Was this page helpful?
