V - The value type for all operationspublic interface BinaryMemcacheClient<V> extends MemcacheClient<V>
| Modifier and Type | Method and Description |
|---|---|
java.util.concurrent.CompletionStage<MemcacheStatus> |
add(java.lang.String key,
V value,
int ttl,
long cas)
Add a key in memcache with the provided value, with the specified TTL.
|
java.util.concurrent.CompletionStage<MemcacheStatus> |
append(java.lang.String key,
V value,
long cas) |
java.util.concurrent.CompletionStage<GetResult<V>> |
casGetAndTouch(java.lang.String key,
int ttl)
Get the value for the provided key, including the CAS value, and sets the expiration
|
java.util.concurrent.CompletionStage<java.lang.Long> |
decr(java.lang.String key,
long by,
long initial,
int ttl)
Decrement a counter for the provided key
|
java.util.concurrent.CompletionStage<java.util.List<V>> |
getAndTouch(java.util.List<java.lang.String> keys,
int ttl)
Get the values for the provided keys and sets the expiration
|
java.util.concurrent.CompletionStage<V> |
getAndTouch(java.lang.String key,
int ttl)
Get the value for the provided key and sets the expiration
|
java.util.concurrent.CompletionStage<java.lang.Long> |
incr(java.lang.String key,
long by,
long initial,
int ttl)
Increment a counter for the provided key
|
java.util.concurrent.CompletionStage<java.lang.Void> |
noop()
Send a noop request
|
java.util.concurrent.CompletionStage<MemcacheStatus> |
prepend(java.lang.String key,
V value,
long cas) |
java.util.concurrent.CompletionStage<MemcacheStatus> |
replace(java.lang.String key,
V value,
int ttl,
long cas)
Replace a key in memcache with the provided value, with the specified TTL.
|
add, append, casGet, casGet, delete, delete, deleteAll, flushAll, get, get, getRawMemcacheClient, getStats, prepend, replace, set, set, shutdown, touchawaitConnected, awaitDisconnected, awaitFullyConnected, awaitFullyDisconnected, awaitFuture, connectFuture, disconnectFuture, fullyConnectedFuture, fullyDisconnectFuture, getConnectionFailure, isConnected, numActiveConnections, numTotalConnections, registerForConnectionChanges, unregisterForConnectionChangesjava.util.concurrent.CompletionStage<MemcacheStatus> add(java.lang.String key, V value, int ttl, long cas)
key - The key, must not be nullvalue - The value, must not be nullttl - The TTL in secondscas - The CAS value, must match the value on the server for the set to go throughjava.util.concurrent.CompletionStage<MemcacheStatus> replace(java.lang.String key, V value, int ttl, long cas)
key - The key, must not be nullvalue - The value, must not be nullttl - The TTL in secondscas - The CAS value, must match the value on the server for the set to go throughjava.util.concurrent.CompletionStage<V> getAndTouch(java.lang.String key, int ttl)
ttl - The TTL in secondskey - The key, must not be nulljava.util.concurrent.CompletionStage<java.util.List<V>> getAndTouch(java.util.List<java.lang.String> keys, int ttl)
keys - Keys, must not be null, nor must any key in the listttl - The TTL in secondsjava.util.concurrent.CompletionStage<GetResult<V>> casGetAndTouch(java.lang.String key, int ttl)
key - First key, must not be nullttl - The TTL in secondsjava.util.concurrent.CompletionStage<java.lang.Long> incr(java.lang.String key,
long by,
long initial,
int ttl)
key - The key, must not be nullby - The value to increment the counter byinitial - The initial value if the key does not existttl - The TTL, in secondsjava.util.concurrent.CompletionStage<java.lang.Long> decr(java.lang.String key,
long by,
long initial,
int ttl)
key - The key, must not be nullby - The value to decrement the counter byinitial - The initial value if the key does not existttl - The TTL, in secondsjava.util.concurrent.CompletionStage<MemcacheStatus> append(java.lang.String key, V value, long cas)
java.util.concurrent.CompletionStage<MemcacheStatus> prepend(java.lang.String key, V value, long cas)
java.util.concurrent.CompletionStage<java.lang.Void> noop()
Copyright © 2020 Spotify AB. All Rights Reserved.