C# 클래스 Brook.Totp.WebLogin2FA.Cache.CacheManage

상속: ICacheManage
파일 보기 프로젝트 열기: yuefengkai/Brook.Totp

공개 메소드들

메소드 설명
CacheManage ( IMemoryCache memoryCache ) : Microsoft.Extensions.Caching.Memory
Get ( string key ) : T
GetOrCreate ( string key, Func factory ) : T
Remove ( string key ) : void
Set ( string key, object value, int seconds = int.MaxValue ) : void

메소드 상세

CacheManage() 공개 메소드

public CacheManage ( IMemoryCache memoryCache ) : Microsoft.Extensions.Caching.Memory
memoryCache IMemoryCache
리턴 Microsoft.Extensions.Caching.Memory

Get() 공개 메소드

public Get ( string key ) : T
key string
리턴 T

GetOrCreate() 공개 메소드

public GetOrCreate ( string key, Func factory ) : T
key string
factory Func
리턴 T

Remove() 공개 메소드

public Remove ( string key ) : void
key string
리턴 void

Set() 공개 메소드

public Set ( string key, object value, int seconds = int.MaxValue ) : void
key string
value object
seconds int
리턴 void