SqlServerCache Class

Definition

Distributed cache implementation using Microsoft SQL Server database.

public ref class SqlServerCache : Microsoft::Extensions::Caching::Distributed::IDistributedCache
public class SqlServerCache : Microsoft.Extensions.Caching.Distributed.IDistributedCache
type SqlServerCache = class
    interface IDistributedCache
Public Class SqlServerCache
Implements IDistributedCache
Inheritance
SqlServerCache
Implements

Constructors

SqlServerCache(IOptions<SqlServerCacheOptions>)

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
Get(String)
GetAsync(String)
GetAsync(String, CancellationToken)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
Refresh(String)
RefreshAsync(String)
RefreshAsync(String, CancellationToken)
Remove(String)
RemoveAsync(String)
RemoveAsync(String, CancellationToken)
Set(String, Byte[], DistributedCacheEntryOptions)
SetAsync(String, Byte[], DistributedCacheEntryOptions)
SetAsync(String, Byte[], DistributedCacheEntryOptions, CancellationToken)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Extension Methods

GetString(IDistributedCache, String)

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

GetStringAsync(IDistributedCache, String)

Asynchronously 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[])

Asynchronously 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)

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

SetString(IDistributedCache, String, String, DistributedCacheEntryOptions)

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

SetStringAsync(IDistributedCache, String, String)

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

SetStringAsync(IDistributedCache, String, String, DistributedCacheEntryOptions)

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.

SetStringAsync(IDistributedCache, String, String, CancellationToken)

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

Applies to