RedisCache 클래스

정의

public ref class RedisCache : IDisposable, Microsoft::Extensions::Caching::Distributed::IDistributedCache
public class RedisCache : IDisposable, Microsoft.Extensions.Caching.Distributed.IDistributedCache
type RedisCache = class
    interface IDistributedCache
    interface IDisposable
Public Class RedisCache
Implements IDisposable, IDistributedCache
상속
RedisCache
구현

생성자

Name Description
RedisCache(IOptions<RedisCacheOptions>)

메서드

Name Description
Dispose()
Get(String)
GetAsync(String, CancellationToken)
Refresh(String)
RefreshAsync(String, CancellationToken)
Remove(String)
RemoveAsync(String, CancellationToken)
Set(String, Byte[], DistributedCacheEntryOptions)
SetAsync(String, Byte[], DistributedCacheEntryOptions, CancellationToken)

확장명 메서드

Name Description
GetString(IDistributedCache, String)

지정된 키를 사용하여 지정된 캐시에서 문자열을 가져옵니다.

GetStringAsync(IDistributedCache, String, CancellationToken)

지정된 키를 사용하여 지정된 캐시에서 문자열을 비동기적으로 가져옵니다.

Set(IDistributedCache, String, Byte[])

지정된 키를 사용하여 지정된 캐시의 바이트 시퀀스를 설정합니다.

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

지정된 키를 사용하여 지정된 캐시에서 바이트 시퀀스를 비동기적으로 설정합니다.

SetString(IDistributedCache, String, String, DistributedCacheEntryOptions)

지정된 키를 사용하여 지정된 캐시의 문자열을 설정합니다.

SetString(IDistributedCache, String, String)

지정된 키를 사용하여 지정된 캐시의 문자열을 설정합니다.

SetStringAsync(IDistributedCache, String, String, CancellationToken)

지정된 키를 사용하여 지정된 캐시의 문자열을 비동기적으로 설정합니다.

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

지정된 키를 사용하여 지정된 캐시의 문자열을 비동기적으로 설정합니다.

적용 대상