C# Class NHibernate.Caches.Couchbase.CouchbaseCacheClient

Inheritance: ICache
Show file Open project: couchbaselabs/nhibernate-caches-couchbase

Private Properties

Property Type Description
ComputeHash string
CouchbaseCacheClient System
FullKeyAsString string
GetAlternateKeyHash string
GetExpirationString string
KeyAsString string

Public Methods

Method 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

Method 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 method

public Clear ( ) : void
return void

CouchbaseCacheClient() public method

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

CouchbaseCacheClient() public method

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

CouchbaseCacheClient() public method

public CouchbaseCacheClient ( string regionName, string>.IDictionary properties, CouchbaseClient couchbaseClient ) : System
regionName string
properties string>.IDictionary
couchbaseClient CouchbaseClient
return System

Destroy() public method

public Destroy ( ) : void
return void

Get() public method

public Get ( object key ) : object
key object
return object

Lock() public method

public Lock ( object key ) : void
key object
return void

NextTimestamp() public method

public NextTimestamp ( ) : long
return long

Put() public method

public Put ( object key, object value ) : void
key object
value object
return void

Remove() public method

public Remove ( object key ) : void
key object
return void

Unlock() public method

public Unlock ( object key ) : void
key object
return void