Constructs a memcached.Client that dispatches requests over dest
.
Constructs a memcached.Client that dispatches requests over dest
. When
dest
resolves to multiple hosts, the hosts are hashed across a ring with
key affinity. The key hashing algorithm can be configured via the withKeyHasher
method on Memcached.client
. Failing hosts can be ejected from the
hash ring if withEjectFailedHost
is set to true. Note, the current
implementation only supports bound Names.
Constructs a memcached.Client that dispatches requests over dest
.
Constructs a memcached.Client that dispatches requests over dest
. When
dest
resolves to multiple hosts, the hosts are hashed across a ring with
key affinity. The key hashing algorithm can be configured via the withKeyHasher
method on Memcached.client
. Failing hosts can be ejected from the
hash ring if withEjectFailedHost
is set to true. Note, the current
implementation only supports bound Names.
Argument label
is used to assign a label to this client.
The label is used to scope stats, etc.
Constructs a memcached.Client that dispatches requests over dest
.
Constructs a memcached.Client that dispatches requests over dest
. When
dest
resolves to multiple hosts, the hosts are hashed across a ring with
key affinity. The key hashing algorithm can be configured via the withKeyHasher
method on Memcached.client
. Failing hosts can be ejected from the
hash ring if withEjectFailedHost
is set to true. Note, the current
implementation only supports bound Names.
Argument label
is used to assign a label to this client.
The label is used to scope stats, etc.
Constructs a memcached.Client that dispatches requests over dest
.
Constructs a memcached.Client that dispatches requests over dest
. When
dest
resolves to multiple hosts, the hosts are hashed across a ring with
key affinity. The key hashing algorithm can be configured via the withKeyHasher
method on Memcached.client
. Failing hosts can be ejected from the
hash ring if withEjectFailedHost
is set to true. Note, the current
implementation only supports bound Names.
Whether to eject cache host from the Ketama ring based on failure accrual.
Whether to eject cache host from the Ketama ring based on failure accrual. By default, this is off. When turning on, keep the following caveat in mind: ejection is based on local failure accrual, so your cluster may get different views of the same cache host. With cache updates, this can introduce inconsistency in cache data. In many cases, it's better to eject cache host from a separate mechanism that's based on a global view.
Defines the hash function to use for partitioned clients when mapping keys to partitions.
Duplicate each node across the hash ring according to reps
.
Duplicate each node across the hash ring according to reps
.
com.twitter.hashing.KetamaDistributor for more details.
(Since version 6.7.x) Use destination names
(Since version 6.7.x) Use destination names
A memcached client with support for pipelined requests, consistent hashing, and per-node load-balancing.