C# Class NSoft.NFramework.Caching.AbstractCacheRepository

캐시 저장소 관리의 기본 클래스입니다.
Inheritance: ICacheRepository
显示文件 Open project: debop/NFramework

Public Properties

Property Type Description
DefaultExpiry System.TimeSpan
MinExpiry System.TimeSpan

Public Methods

Method Description
Clear ( ) : void

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

Get ( string key ) : object

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

Remove ( string key ) : void

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

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

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

Protected Methods

Method Description
AbstractCacheRepository ( ) : System

생성자

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

생성자

Method Details

AbstractCacheRepository() protected method

생성자
protected AbstractCacheRepository ( ) : System
return System

AbstractCacheRepository() protected method

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

Clear() public abstract method

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

Get() public abstract method

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

Remove() public abstract method

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

Set() public abstract method

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

Property Details

DefaultExpiry public_oe static_oe property

기본 유효 기간 (2시간)
public static TimeSpan,System DefaultExpiry
return System.TimeSpan

MinExpiry public_oe static_oe property

최소 유효 기간 (1분)
public static TimeSpan,System MinExpiry
return System.TimeSpan