Olvasás angol nyelven

Megosztás a következőn keresztül:


RedisCache Class

Definition

public class RedisCache : IDisposable, Microsoft.Extensions.Caching.Distributed.IBufferDistributedCache
Inheritance
RedisCache
Implements

Constructors

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Equals(Object)

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

(Inherited from Object)
Get(String)

Gets a value with the given key.

GetAsync(String, CancellationToken)

Gets a value with the given key.

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)

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

RefreshAsync(String, CancellationToken)

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

Remove(String)

Removes the value with the given key.

RemoveAsync(String, CancellationToken)

Removes the value with the given key.

Set(String, Byte[], DistributedCacheEntryOptions)

Sets a value with the given key.

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

Sets the value with the given key.

ToString()

Returns a string that represents the current object.

(Inherited from Object)

Explicit Interface Implementations

Extension Methods

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, 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

Termék Verziók
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)
.NET Standard 2.0 (package-provided)