DistributedCacheTagHelperStorage DistributedCacheTagHelperStorage Class

Definition

Implements IDistributedCacheTagHelperStorage by storing the content in using IDistributedCache as the store.
public class DistributedCacheTagHelperStorage : IDistributedCacheTagHelperStorage
Public Class DistributedCacheTagHelperStorage
    Implements IDistributedCacheTagHelperStorage
Inheritance
DistributedCacheTagHelperStorageDistributedCacheTagHelperStorage
Implements

Constructors

DistributedCacheTagHelperStorage(IDistributedCache) DistributedCacheTagHelperStorage(IDistributedCache)

Creates a new DistributedCacheTagHelperStorage.
public DistributedCacheTagHelperStorage(IDistributedCache distributedCache)
Public Sub New(distributedCache As IDistributedCache)
Parameters

Methods

Equals(Object) Equals(Object)

Inherited from Object

Equals(Object, Object) Equals(Object, Object)

Inherited from Object

GetAsync(String) GetAsync(String)

Gets the content from the cache and deserializes it.
public Task<byte[]> GetAsync(string key)
Public Function GetAsync(key As String) As Task(Of Byte())
Parameters
key
String String
The unique key to use in the cache.
Returns
System.Threading.Tasks.Task<Byte[]> System.Threading.Tasks.Task(Of Byte())
The stored value if it exists, null otherwise.

GetHashCode() GetHashCode()

Inherited from Object

GetType() GetType()

Inherited from Object

MemberwiseClone() MemberwiseClone()

Inherited from Object

ReferenceEquals(Object, Object) ReferenceEquals(Object, Object)

Inherited from Object

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

Sets the content in the cache and serialized it.
public Task SetAsync(string key, byte[] value, DistributedCacheEntryOptions options)
Public Function SetAsync(key As String, value As Byte(), options As DistributedCacheEntryOptions) As Task
Parameters
key
String String
The unique key to use in the cache.
value
Byte[] Byte()
The value to cache.
Returns

ToString() ToString()

Inherited from Object