Public Member Functions | |
| ConsistentHash (unsigned long aHash, Server *aServer) | |
| ConsistentHash (const ConsistentHash &rhs) | |
| ConsistentHash & | operator= (const ConsistentHash &rhs) |
| bool | operator< (const ConsistentHash &rhs) const |
| bool | operator== (const ConsistentHash &rhs) const |
Public Attributes | |
| unsigned long | mHash |
| hash value | |
| Server * | mServer |
| server implementation | |
Classes | |
| struct | MatchServer |
Consistent hashing for the servers ensures that even with changes to the server list, many of the data keys will continue to mapped to the same server. This ensures that changes to the server list doesn't invalidate the entire cache.
Definition at line 526 of file MemCacheClient.h.
| MemCacheClient::ConsistentHash::ConsistentHash | ( | unsigned long | aHash, | |
| Server * | aServer | |||
| ) | [inline] |
constructor
Definition at line 531 of file MemCacheClient.h.
| MemCacheClient::ConsistentHash::ConsistentHash | ( | const ConsistentHash & | rhs | ) | [inline] |
| ConsistentHash& MemCacheClient::ConsistentHash::operator= | ( | const ConsistentHash & | rhs | ) | [inline] |
copy
Definition at line 536 of file MemCacheClient.h.
References mHash, and mServer.
Referenced by ConsistentHash().
| bool MemCacheClient::ConsistentHash::operator< | ( | const ConsistentHash & | rhs | ) | const [inline] |
| bool MemCacheClient::ConsistentHash::operator== | ( | const ConsistentHash & | rhs | ) | const [inline] |
1.5.6