C# 클래스 Enyim.Caching.Memcached.KetamaNodeLocator

Implements Ketama cosistent hashing, compatible with the "spymemcached" Java memcachedClient
상속: IMemcachedNodeLocator
파일 보기 프로젝트 열기: xianrendzw/LightFramework.Net 1 사용 예제들

공개 메소드들

메소드 설명
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