C# Класс NSoft.NFramework.Data.MongoDB.NHCaches.MongoCacheClient

MongoDB 를 캐시 저장소로 이용하는 캐시입니다.
Наследование: NHibernate.Cache.ICache
Показать файл Открыть проект

Private Properties

Свойство Тип Описание
Configure void
DeserializeValue object
GetCacheId string
GetCompressThreshold int
GetConnectionString string
GetExpiration TimeSpan
SerializeValue MongoCacheEntry

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

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

MongoCacheClient ( ) : System

생성자

MongoCacheClient ( string regionName ) : System

생성자

MongoCacheClient ( string regionName, string>.IDictionary props ) : System

생성자

NextTimestamp ( ) : long

Generate a timestamp

Put ( object key, object value ) : void

캐시에 값을 저장합니다.

Remove ( object key ) : void

캐시에서 해당 키의 캐시 항목을 삭제합니다.

Unlock ( object key ) : void

If this is a clustered cache, unlock the item

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

Метод Описание
Configure ( string>.IDictionary props ) : void
DeserializeValue ( MongoCacheEntry entry ) : object

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

GetCacheId ( object key ) : string

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

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

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

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

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

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

생성자
public MongoCacheClient ( ) : System
Результат System

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

생성자
public MongoCacheClient ( string regionName ) : System
regionName string
Результат System

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

생성자
public MongoCacheClient ( string regionName, string>.IDictionary props ) : System
regionName string
props 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() публичный Метод

캐시에서 해당 키의 캐시 항목을 삭제합니다.
public Remove ( object key ) : void
key object The Id 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 Id of the Item in the Cache to unlock.
Результат void