V - The value type for all operationspublic interface BinaryMemcacheClient<V> extends MemcacheClient<V>
| Modifier and Type | Method and Description |
|---|---|
com.google.common.util.concurrent.ListenableFuture<MemcacheStatus> |
add(String key,
V value,
int ttl,
long cas)
Add a key in memcache with the provided value, with the specified TTL.
|
com.google.common.util.concurrent.ListenableFuture<MemcacheStatus> |
append(String key,
V value,
long cas) |
com.google.common.util.concurrent.ListenableFuture<GetResult<V>> |
casGetAndTouch(String key,
int ttl)
Get the value for the provided key, including the CAS value, and sets the expiration
|
com.google.common.util.concurrent.ListenableFuture<Long> |
decr(String key,
long by,
long initial,
int ttl)
Decrement a counter for the provided key
|
com.google.common.util.concurrent.ListenableFuture<List<V>> |
getAndTouch(List<String> keys,
int ttl)
Get the values for the provided keys and sets the expiration
|
com.google.common.util.concurrent.ListenableFuture<V> |
getAndTouch(String key,
int ttl)
Get the value for the provided key and sets the expiration
|
com.google.common.util.concurrent.ListenableFuture<Long> |
incr(String key,
long by,
long initial,
int ttl)
Increment a counter for the provided key
|
com.google.common.util.concurrent.ListenableFuture<Void> |
noop()
Send a noop request
|
com.google.common.util.concurrent.ListenableFuture<MemcacheStatus> |
prepend(String key,
V value,
long cas) |
com.google.common.util.concurrent.ListenableFuture<MemcacheStatus> |
replace(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, get, get, getRawMemcacheClient, numActiveConnections, numTotalConnections, prepend, replace, set, set, shutdown, touchisConnected, registerForConnectionChanges, unregisterForConnectionChangescom.google.common.util.concurrent.ListenableFuture<MemcacheStatus> add(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 throughcom.google.common.util.concurrent.ListenableFuture<MemcacheStatus> replace(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 throughcom.google.common.util.concurrent.ListenableFuture<V> getAndTouch(String key, int ttl)
ttl - The TTL in secondskey - The key, must not be nullcom.google.common.util.concurrent.ListenableFuture<List<V>> getAndTouch(List<String> keys, int ttl)
keys - Keys, must not be null, nor must any key in the listttl - The TTL in secondscom.google.common.util.concurrent.ListenableFuture<GetResult<V>> casGetAndTouch(String key, int ttl)
key - First key, must not be nullttl - The TTL in secondscom.google.common.util.concurrent.ListenableFuture<Long> incr(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 secondscom.google.common.util.concurrent.ListenableFuture<Long> decr(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 secondscom.google.common.util.concurrent.ListenableFuture<MemcacheStatus> append(String key, V value, long cas)
com.google.common.util.concurrent.ListenableFuture<MemcacheStatus> prepend(String key, V value, long cas)
com.google.common.util.concurrent.ListenableFuture<Void> noop()
Copyright © 2017 Spotify AB. All rights reserved.