C# Class NSoft.NFramework.Caching.SharedCache.NHCaches.SharedCacheClient

SharedCache 를 캐시 저장소로 사용하는 Cache Client입니다. 참고 : http://www.sharedcache.com/cms/
Inheritance: ICache
Show file Open project: debop/NFramework Class Usage Examples

Private Properties

Property Type Description
Configure void
DeserializeValue object
GetCacheId string
GetCompressThreshold int
GetExpiration System.TimeSpan
SerializeValue SharedCacheEntry

Public Methods

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

Private Methods

Method Description
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 인스턴스로 빌드합니다.

Method Details

Clear() public method

Clear the Cache
public Clear ( ) : void
return void

Destroy() public method

Clean up.
public Destroy ( ) : void
return void

Get() public method

Get the object from the Cache
public Get ( object key ) : object
key object
return object

Lock() public method

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.
return void

NextTimestamp() public method

Generate a timestamp
public NextTimestamp ( ) : long
return long

Put() public method

public Put ( object key, object value ) : void
key object
value object
return void

Remove() public method

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

SharedCacheClient() public method

public SharedCacheClient ( ) : System
return System

SharedCacheClient() public method

public SharedCacheClient ( string regionName ) : System
regionName string
return System

SharedCacheClient() public method

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

Unlock() public method

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.
return void