IDistributedCache IDistributedCache IDistributedCache Interface

Definition

Represents a distributed cache of serialized values.

public interface IDistributedCache
type IDistributedCache = interface
Public Interface IDistributedCache
Derived

Methods

Get(String) Get(String) Get(String)

Gets a value with the given key.

GetAsync(String) GetAsync(String) GetAsync(String)
GetAsync(String, CancellationToken) GetAsync(String, CancellationToken) GetAsync(String, CancellationToken)

Gets a value with the given key.

Refresh(String) Refresh(String) Refresh(String)

Refreshes a value in the cache based on its key, resetting its sliding expiration timeout (if any).

RefreshAsync(String) RefreshAsync(String) RefreshAsync(String)
RefreshAsync(String, CancellationToken) RefreshAsync(String, CancellationToken) RefreshAsync(String, CancellationToken)

Refreshes a value in the cache based on its key, resetting its sliding expiration timeout (if any).

Remove(String) Remove(String) Remove(String)

Removes the value with the given key.

RemoveAsync(String) RemoveAsync(String) RemoveAsync(String)
RemoveAsync(String, CancellationToken) RemoveAsync(String, CancellationToken) RemoveAsync(String, CancellationToken)

Removes the value with the given key.

Set(String, Byte[], DistributedCacheEntryOptions) Set(String, Byte[], DistributedCacheEntryOptions) Set(String, Byte[], DistributedCacheEntryOptions)

Sets a value with the given key.

SetAsync(String, Byte[], DistributedCacheEntryOptions) SetAsync(String, Byte[], DistributedCacheEntryOptions) SetAsync(String, Byte[], DistributedCacheEntryOptions)
SetAsync(String, Byte[], DistributedCacheEntryOptions, CancellationToken) SetAsync(String, Byte[], DistributedCacheEntryOptions, CancellationToken) SetAsync(String, Byte[], DistributedCacheEntryOptions, CancellationToken)

Sets the value with the given key.

Extension Methods

GetString(IDistributedCache, String) GetString(IDistributedCache, String) GetString(IDistributedCache, String)

Gets a string from the specified cache with the specified key.

GetStringAsync(IDistributedCache, String) GetStringAsync(IDistributedCache, String) GetStringAsync(IDistributedCache, String)

Asynchronously gets a string from the specified cache with the specified key.

GetStringAsync(IDistributedCache, String, CancellationToken) GetStringAsync(IDistributedCache, String, CancellationToken) GetStringAsync(IDistributedCache, String, CancellationToken)

Asynchronously gets a string from the specified cache with the specified key.

Set(IDistributedCache, String, Byte[]) Set(IDistributedCache, String, Byte[]) Set(IDistributedCache, String, Byte[])

Sets a sequence of bytes in the specified cache with the specified key.

SetAsync(IDistributedCache, String, Byte[]) SetAsync(IDistributedCache, String, Byte[]) SetAsync(IDistributedCache, String, Byte[])

Asynchronously sets a sequence of bytes in the specified cache with the specified key.

SetAsync(IDistributedCache, String, Byte[], CancellationToken) SetAsync(IDistributedCache, String, Byte[], CancellationToken) SetAsync(IDistributedCache, String, Byte[], CancellationToken)

Asynchronously sets a sequence of bytes in the specified cache with the specified key.

SetString(IDistributedCache, String, String) SetString(IDistributedCache, String, String) SetString(IDistributedCache, String, String)

Sets a string in the specified cache with the specified key.

SetString(IDistributedCache, String, String, DistributedCacheEntryOptions) SetString(IDistributedCache, String, String, DistributedCacheEntryOptions) SetString(IDistributedCache, String, String, DistributedCacheEntryOptions)

Sets a string in the specified cache with the specified key.

SetStringAsync(IDistributedCache, String, String) SetStringAsync(IDistributedCache, String, String) SetStringAsync(IDistributedCache, String, String)

Asynchronously sets a string in the specified cache with the specified key.

SetStringAsync(IDistributedCache, String, String, DistributedCacheEntryOptions) SetStringAsync(IDistributedCache, String, String, DistributedCacheEntryOptions) SetStringAsync(IDistributedCache, String, String, DistributedCacheEntryOptions)

Asynchronously sets a string in the specified cache with the specified key.

SetStringAsync(IDistributedCache, String, String, DistributedCacheEntryOptions, CancellationToken) SetStringAsync(IDistributedCache, String, String, DistributedCacheEntryOptions, CancellationToken) SetStringAsync(IDistributedCache, String, String, DistributedCacheEntryOptions, CancellationToken)

Asynchronously sets a string in the specified cache with the specified key.

SetStringAsync(IDistributedCache, String, String, CancellationToken) SetStringAsync(IDistributedCache, String, String, CancellationToken) SetStringAsync(IDistributedCache, String, String, CancellationToken)

Asynchronously sets a string in the specified cache with the specified key.

Applies to