C# Класс Enyim.Caching.Memcached.KetamaNodeLocator

Implements Ketama cosistent hashing, compatible with the "spymemcached" Java memcachedClient
Наследование: IMemcachedNodeLocator
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
KetamaNodeLocator ( ) : System

Initialized a new instance of the KetamaNodeLocator using the default hash algorithm.

KetamaNodeLocator ( string hashName ) : System

Initialized a new instance of the KetamaNodeLocator using a custom hash algorithm.

If the hashName does not match any of the item on the list it will be passed to HashAlgorithm.Create.

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

Метод Описание
CreateHash ( ) : HashAlgorithm
GetKeyHash ( string key ) : uint
IMemcachedNodeLocator ( ) : IEnumerable
IMemcachedNodeLocator ( string key ) : IMemcachedNode
IMemcachedNodeLocator ( IList nodes ) : void
LocateNode ( LookupData ld, uint itemKeyHash ) : IMemcachedNode

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

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

Initialized a new instance of the KetamaNodeLocator using the default hash algorithm.
public KetamaNodeLocator ( ) : System
Результат System

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

Initialized a new instance of the KetamaNodeLocator using a custom hash algorithm.
If the hashName does not match any of the item on the list it will be passed to HashAlgorithm.Create.
public KetamaNodeLocator ( string hashName ) : System
hashName string The name of the hash algorithm to use. /// /// NameDescription /// md5Equivalent of System.Security.Cryptography.MD5 /// sha1Equivalent of System.Security.Cryptography.SHA1 /// tigerTiger Hash /// crcCRC32 /// fnv1_32FNV Hash 32bit /// fnv1_64FNV Hash 64bit /// fnv1a_32Modified FNV Hash 32bit /// fnv1a_64Modified FNV Hash 64bit /// murmurMurmur Hash /// oneatatimeJenkin's "One at A time Hash" /// ///
Результат System