C# Класс NSoft.NFramework.Caching.SharedCache.NHCaches.SharedCacheClient

SharedCache 를 캐시 저장소로 사용하는 Cache Client입니다. 참고 : http://www.sharedcache.com/cms/
Наследование: ICache
Показать файл Открыть проект Примеры использования класса

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