Add a new key to all replicas, succeed only if all replicas succeed.
Add a new key to all replicas, succeed only if all replicas succeed.
true if stored, false if not stored
Store a key but only if it doesn't already exist on the server.
Store a key but only if it doesn't already exist on the server.
true if stored, false if not stored
Append bytes to the end of an existing key.
Append bytes to the end of an existing key. If the key doesn't exist, the operation has no effect.
true if stored, false if not stored
Append a set of bytes to the end of an existing key.
Append a set of bytes to the end of an existing key. If the key doesn't exist, the operation has no effect.
true if stored, false if not stored
Check and set a key, succeed only if all replicas succeed.
Check and set a key, succeed only if all replicas succeed.
Stored if the operation was successful, Exists if the operation failed because someone else had changed the value, or NotFound if the key was not found in the cache.
Perform a CAS operation on the key, only if the value has not changed since the value was last retrieved.
Perform a CAS operation on the key, only if the value has not changed
since the value was last retrieved. This is enforced by passing a
casUnique
token extracted from a gets
command. If the casUnique
token matches the one on the server, the value is replaced. We treat the
"cas unique" token opaquely, but in reality it is a string-encoded u64.
Stored if the operation was successful, Exists if the operation failed because someone else had changed the value, or NotFound if the key was not found in the cache.
Decrease an existing key in all replicas, succeed only if all replicas succeed.
Decrease an existing key in all replicas, succeed only if all replicas succeed.
Delete a key from all replicas, succeed only if all replicas succeed.
Delete a key from all replicas, succeed only if all replicas succeed.
true if deleted, false if not found
Get a set of keys from the server.
Get a set of keys from the server.
a Map[String, T] of all of the keys that the server had.
Get a key from the server.
Get a key from the server.
Returns the first result found within all replicas, or miss/failure depends on the last replica
Returns the first result found within all replicas, or miss/failure depends on the last replica
Get a set of keys from the server, together with a "cas unique" token.
Get a set of keys from the server, together with a "cas unique" token. The token is treated opaquely by the memcache client but is in reality a string-encoded u64.
a Map[String, (T, Buf)] of all the keys the server had, together with their "cas unique" token
Get a key from the server, with a "cas unique" token.
Get a key from the server, with a "cas unique" token. The token is treated opaquely by the memcache client but is in reality a string-encoded u64.
Only returns the consistent result from all replicas; if the data is inconsistent, this client simply returns nothing just like key missing; if any failure occurs, this method returns failure as there's a great chance the check-and-set won't succeed.
Only returns the consistent result from all replicas; if the data is inconsistent, this client simply returns nothing just like key missing; if any failure occurs, this method returns failure as there's a great chance the check-and-set won't succeed.
Increase an existing key in all replicas, succeed only if all replicas succeed.
Increase an existing key in all replicas, succeed only if all replicas succeed.
Prepend bytes to the beginning of an existing key.
Prepend bytes to the beginning of an existing key. If the key doesn't exist, the operation has no effect.
true if stored, false if not stored
Prepend a set of bytes to the beginning of an existing key.
Prepend a set of bytes to the beginning of an existing key. If the key doesn't exist, the operation has no effect.
true if stored, false if not stored
Send a quit command to the server.
Send a quit command to the server. Alternative to release, for protocol compatability.
none
release the underlying service(s)
release the underlying service(s)
Replace an existing key in all replicas, succeed only if all replicas succeed.
Replace an existing key in all replicas, succeed only if all replicas succeed.
true if stored, false if not stored
Replace an item if it exists.
Replace an item if it exists. If it doesn't exist, the operation has no effect.
true if stored, false if not stored
Store a key in all replicas, succeed only if all replicas succeed.
Store a key in all replicas, succeed only if all replicas succeed.
true
Store a key.
Send a stats command with optional arguments to the server
Send a stats command with optional arguments to the server
a sequence of strings, each of which is a line of output
Adaptor to use Array[Byte] as values
Adaptor to use Array[Byte] as values
Adaptor to use String as values
Adaptor to use String as values
Perform a CAS operation on the key, only if the value has not
changed since the value was last retrieved, and casUnique
extracted from a gets
command.
Perform a CAS operation on the key, only if the value has not
changed since the value was last retrieved, and casUnique
extracted from a gets
command. We treat the "cas unique" token
opaquely, but in reality it is a string-encoded u64.
true if replaced, false if not
(Since version 2015-12-10) BaseClient.cas deprecated in favor of checkAndSet
this is superceded by checkAndSet
which returns a higher fidelity
return value
Perform a CAS operation on the key, only if the value has not
changed since the value was last retrieved, and casUnique
extracted from a gets
command.
Perform a CAS operation on the key, only if the value has not
changed since the value was last retrieved, and casUnique
extracted from a gets
command. We treat the "cas unique" token
opaquely, but in reality it is a string-encoded u64.
true if replaced, false if not
(Since version 2015-12-10) BaseClient.cas deprecated in favor of checkAndSet
this is superceded by checkAndSet
which returns a higher fidelity
return value