C# Class NSoft.NFramework.Caching.Memcached.NHCaches.MemcachedCacheClient

Memcached를 캐시 저장소로 사용하는 NHibernate 2nd Cache의 Client 클래스입니다.
Inheritance: NHibernate.Cache.ICache
Mostrar archivo Open project: debop/NFramework Class Usage Examples

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

MemcachedCacheClient ( ) : System
MemcachedCacheClient ( string regionName ) : System
MemcachedCacheClient ( string regionName, string>.IDictionary properties ) : System
NextTimestamp ( ) : long

Generate a timestamp

Put ( object key, object value ) : void

항목을 캐시에 저장

Remove ( object key ) : void

Remove an item from the Cache.

Unlock ( object key ) : void

If this is a clustered cache, unlock the item

Private Methods

Method Description
Configure ( string>.IDictionary props ) : void
GetCacheId ( object key ) : string
GetCompressThreshold ( string>.IDictionary props ) : int
GetExpiration ( string>.IDictionary props ) : System.TimeSpan

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

MemcachedCacheClient() public method

public MemcachedCacheClient ( ) : System
return System

MemcachedCacheClient() public method

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

MemcachedCacheClient() public method

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

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 Key of the Item in the Cache to remove.
return void

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