C# Class NSoft.NFramework.Caching.ConcurrentCacheRepository

ConcurrentDictionary{TKey,TValue} 를 캐시 저장소로 사용하는 CacheRepository입니다.
Inheritance: AbstractCacheRepository
Afficher le fichier Open project: debop/NFramework Class Usage Examples

Méthodes publiques

Méthode Description
Clear ( ) : void

캐시의 모든 항목을 삭제합니다.

ConcurrentCacheRepository ( ) : System

생성자

ConcurrentCacheRepository ( ISerializer serializer = null, System.TimeSpan expiry = default(TimeSpan) ) : System

생성자

Get ( string key ) : object

캐시에 저장된 항목을 반환합니다.

Remove ( string key ) : void

캐시에서 항목을 제거합니다.

Set ( string key, object item, System.TimeSpan validFor = default(TimeSpan) ) : void

캐시에 항목을 저장합니다.

Method Details

Clear() public méthode

캐시의 모든 항목을 삭제합니다.
public Clear ( ) : void
Résultat void

ConcurrentCacheRepository() public méthode

생성자
public ConcurrentCacheRepository ( ) : System
Résultat System

ConcurrentCacheRepository() public méthode

생성자
public ConcurrentCacheRepository ( ISerializer serializer = null, System.TimeSpan expiry = default(TimeSpan) ) : System
serializer ISerializer 객체 Serializer
expiry System.TimeSpan 유효기간
Résultat System

Get() public méthode

캐시에 저장된 항목을 반환합니다.
public Get ( string key ) : object
key string
Résultat object

Remove() public méthode

캐시에서 항목을 제거합니다.
public Remove ( string key ) : void
key string
Résultat void

Set() public méthode

캐시에 항목을 저장합니다.
public Set ( string key, object item, System.TimeSpan validFor = default(TimeSpan) ) : void
key string
item object
validFor System.TimeSpan
Résultat void