public interface TokenClient
| Modifier and Type | Method and Description |
|---|---|
default void |
del(String... tokens) |
default String |
get(String token)
retrieve expiration from persistence
|
default String |
set(String token,
long seconds,
String expiration) |
default String |
set(String token,
String expiration) |
default String |
setKeepTTL(String token,
String expiration)
Used to postpone expiration but keep existing absolute timeout
|
default void |
shutdownClient()
shut down client connection
|
default Long |
ttl(String token)
retrieve the absolute timeout of token in seconds
|
default void shutdownClient()
default String set(String token, long seconds, String expiration)
token - the tokenseconds - for absolute timeoutexpiration - representation of expirationdefault String set(String token, String expiration)
token - the tokenexpiration - representation of expirationdefault String setKeepTTL(String token, String expiration)
token - the tokenexpiration - representation of expirationdefault String get(String token)
token - the tokendefault Long ttl(String token)
token - the token to determine ttl fordefault void del(String... tokens)
tokens - the tokens to be removed from persistenceCopyright © 2018–2021 LF AI & Data Foundation. All rights reserved.