C# 클래스 NSoft.NFramework.Caching.SharedCache.NHCaches.SharedCacheClient

SharedCache 를 캐시 저장소로 사용하는 Cache Client입니다. 참고 : http://www.sharedcache.com/cms/
상속: ICache
파일 보기 프로젝트 열기: debop/NFramework 1 사용 예제들

Private Properties

프로퍼티 타입 설명
Configure void
DeserializeValue object
GetCacheId string
GetCompressThreshold int
GetExpiration System.TimeSpan
SerializeValue SharedCacheEntry

공개 메소드들

메소드 설명
Clear ( ) : void

Clear the Cache

Destroy ( ) : void

Clean up.

Get ( object key ) : object

Get the object from the Cache

Lock ( object key ) : void

If this is a clustered cache, lock the item

NextTimestamp ( ) : long

Generate a timestamp

Put ( object key, object value ) : void
Remove ( object key ) : void

Remove an item from the Cache.

SharedCacheClient ( ) : System
SharedCacheClient ( string regionName ) : System
SharedCacheClient ( string regionName, string>.IDictionary properties ) : System
Unlock ( object key ) : void

If this is a clustered cache, unlock the item

비공개 메소드들

메소드 설명
Configure ( string>.IDictionary props ) : void
DeserializeValue ( SharedCacheEntry entry ) : object

캐시에 저장된 SharedCacheEntry에서 원본 값을 추출합니다.

GetCacheId ( object key ) : string

캐시 저장 시의 고유 Id값을 생성합니다.

GetCompressThreshold ( string>.IDictionary props ) : int
GetExpiration ( string>.IDictionary props ) : System.TimeSpan
SerializeValue ( object key, object value ) : SharedCacheEntry

객체를 캐시에 저장하기 위해, SharedCacheEntry 인스턴스로 빌드합니다.

메소드 상세

Clear() 공개 메소드

Clear the Cache
public Clear ( ) : void
리턴 void

Destroy() 공개 메소드

Clean up.
public Destroy ( ) : void
리턴 void

Get() 공개 메소드

Get the object from the Cache
public Get ( object key ) : object
key object
리턴 object

Lock() 공개 메소드

If this is a clustered cache, lock the item
public Lock ( object key ) : void
key object The Key of the Item in the Cache to lock.
리턴 void

NextTimestamp() 공개 메소드

Generate a timestamp
public NextTimestamp ( ) : long
리턴 long

Put() 공개 메소드

public Put ( object key, object value ) : void
key object
value object
리턴 void

Remove() 공개 메소드

Remove an item from the Cache.
public Remove ( object key ) : void
key object The Id of the Item in the Cache to remove.
리턴 void

SharedCacheClient() 공개 메소드

public SharedCacheClient ( ) : System
리턴 System

SharedCacheClient() 공개 메소드

public SharedCacheClient ( string regionName ) : System
regionName string
리턴 System

SharedCacheClient() 공개 메소드

public SharedCacheClient ( string regionName, string>.IDictionary properties ) : System
regionName string
properties string>.IDictionary
리턴 System

Unlock() 공개 메소드

If this is a clustered cache, unlock the item
public Unlock ( object key ) : void
key object The Key of the Item in the Cache to unlock.
리턴 void