C# Class NHibernate.Caches.Couchbase.CouchbaseCacheClient

Inheritance: ICache
Afficher le fichier Open project: couchbaselabs/nhibernate-caches-couchbase

Private Properties

Свойство Type Description
ComputeHash string
CouchbaseCacheClient System
FullKeyAsString string
GetAlternateKeyHash string
GetExpirationString string
KeyAsString string

Méthodes publiques

Méthode Description
Clear ( ) : void
CouchbaseCacheClient ( string regionName ) : System
CouchbaseCacheClient ( string regionName, string>.IDictionary properties ) : System
CouchbaseCacheClient ( string regionName, string>.IDictionary properties, CouchbaseClient couchbaseClient ) : System
Destroy ( ) : void
Get ( object key ) : object
Lock ( object key ) : void
NextTimestamp ( ) : long
Put ( object key, object value ) : void
Remove ( object key ) : void
Unlock ( object key ) : void

Private Methods

Méthode Description
ComputeHash ( string fullKeyString, HashAlgorithm hashAlgorithm ) : string

Compute the hash of the full key string using the given hash algorithm

CouchbaseCacheClient ( ) : System
FullKeyAsString ( object key ) : string

Turn the key object into a human readable string.

GetAlternateKeyHash ( object key ) : string

Compute an alternate key hash; used as a check that the looked-up value is in fact what has been put there in the first place.

GetExpirationString ( string>.IDictionary props ) : string
KeyAsString ( object key ) : string

Turn the key obj into a string, preperably using human readable string, and if the string is too long (>=250) it will be hashed

Method Details

Clear() public méthode

public Clear ( ) : void
Résultat void

CouchbaseCacheClient() public méthode

public CouchbaseCacheClient ( string regionName ) : System
regionName string
Résultat System

CouchbaseCacheClient() public méthode

public CouchbaseCacheClient ( string regionName, string>.IDictionary properties ) : System
regionName string
properties string>.IDictionary
Résultat System

CouchbaseCacheClient() public méthode

public CouchbaseCacheClient ( string regionName, string>.IDictionary properties, CouchbaseClient couchbaseClient ) : System
regionName string
properties string>.IDictionary
couchbaseClient CouchbaseClient
Résultat System

Destroy() public méthode

public Destroy ( ) : void
Résultat void

Get() public méthode

public Get ( object key ) : object
key object
Résultat object

Lock() public méthode

public Lock ( object key ) : void
key object
Résultat void

NextTimestamp() public méthode

public NextTimestamp ( ) : long
Résultat long

Put() public méthode

public Put ( object key, object value ) : void
key object
value object
Résultat void

Remove() public méthode

public Remove ( object key ) : void
key object
Résultat void

Unlock() public méthode

public Unlock ( object key ) : void
key object
Résultat void