C# Класс NSoft.NFramework.Caching.Memcached.NHCaches.MemcachedCacheClient

Memcached를 캐시 저장소로 사용하는 NHibernate 2nd Cache의 Client 클래스입니다.
Наследование: NHibernate.Cache.ICache
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
Configure ( string>.IDictionary props ) : void
GetCacheId ( object key ) : string
GetCompressThreshold ( string>.IDictionary props ) : int
GetExpiration ( string>.IDictionary props ) : System.TimeSpan

Описание методов

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

MemcachedCacheClient() публичный Метод

public MemcachedCacheClient ( ) : System
Результат System

MemcachedCacheClient() публичный Метод

public MemcachedCacheClient ( string regionName ) : System
regionName string
Результат System

MemcachedCacheClient() публичный Метод

public MemcachedCacheClient ( string regionName, string>.IDictionary properties ) : System
regionName string
properties string>.IDictionary
Результат System

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 Key of the Item in the Cache to remove.
Результат void

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