C# Class NSoft.NFramework.Caching.ConcurrentCacheRepository

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

Public Methods

Method 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 method

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

ConcurrentCacheRepository() public method

생성자
public ConcurrentCacheRepository ( ) : System
return System

ConcurrentCacheRepository() public method

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

Get() public method

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

Remove() public method

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

Set() public method

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