IDistributedCache Interface¶
- Namespace
Microsoft.Extensions.Caching.Distributed- Assemblies
- Microsoft.Extensions.Caching.Abstractions
Syntax¶
public interface IDistributedCache
-
interface
Microsoft.Extensions.Caching.Distributed.IDistributedCache
Methods¶
-
Get(System.String)¶ Return type: System.Byte<System.Byte>[] byte[] Get(string key)
-
GetAsync(System.String)¶ Return type: System.Threading.Tasks.Task<System.Byte<System.Byte>[]> Task<byte[]> GetAsync(string key)
-
Refresh(System.String)¶ void Refresh(string key)
-
RefreshAsync(System.String)¶ Return type: System.Threading.Tasks.Task Task RefreshAsync(string key)
-
Remove(System.String)¶ void Remove(string key)
-
RemoveAsync(System.String)¶ Return type: System.Threading.Tasks.Task Task RemoveAsync(string key)
-
Set(System.String, System.Byte[], Microsoft.Extensions.Caching.Distributed.DistributedCacheEntryOptions)¶ void Set(string key, byte[] value, DistributedCacheEntryOptions options)
-
SetAsync(System.String, System.Byte[], Microsoft.Extensions.Caching.Distributed.DistributedCacheEntryOptions)¶ Return type: System.Threading.Tasks.Task Task SetAsync(string key, byte[] value, DistributedCacheEntryOptions options)
-