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
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
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.
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.
Decrement a key.
Decrement a key. Interpret the value as an JLong if it is parseable. This operation has no effect if there is no value there already.
Remove a key.
Remove a key.
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.
Get a set of keys from the server.
Get a set of keys from the server. Returns a Future[GetResult] that encapsulates hits, misses and failures.
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.
Get a set of keys from the server.
Get a set of keys from the server. Returns a Future[GetsResult] that encapsulates hits, misses and failures. This variant includes the casToken from memcached.
Increment a key.
Increment a key. Interpret the value as an Long if it is parseable. This operation has no effect if there is no value there already.
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 bytes on an existing key.
Replace bytes on an existing key. If the key doesn't exist, the operation has no effect.
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
the underlying Memcached Service.
the underlying Memcached Service.
Store a key.
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
A Client connected to an individual Memcached server.