public interface SemanticJRedis<T> extends CodecManager
| Modifier and Type | Method and Description |
|---|---|
JRedis |
auth(String authorization)
Required for authorizing access to the server.
|
void |
bgsave() |
long |
dbsize() |
long |
decr(String key) |
long |
decrby(String key,
int delta) |
boolean |
del(String key) |
boolean |
exists(String key) |
boolean |
expire(String key,
int ttlseconds) |
JRedis |
flushall() |
JRedis |
flushdb() |
T |
get(String key) |
long |
incr(String key) |
long |
incrby(String key,
int delta) |
Map<String,String> |
info() |
List<String> |
keys() |
List<String> |
keys(String pattern) |
long |
lastsave() |
T |
lindex(String listkey,
int index) |
long |
llen(String listkey) |
T |
lpop(String listKey) |
void |
lpush(String listkey,
T value) |
List<T> |
lrange(String listkey,
int from,
int to) |
long |
lrem(String listKey,
T value,
int count) |
void |
lset(String key,
int index,
T value) |
void |
ltrim(String listkey,
int keepFrom,
int keepTo) |
List<T> |
mget(String key,
String... moreKeys) |
boolean |
move(String key,
int dbIndex) |
JRedis |
ping()
Ping redis
|
void |
quit() |
String |
randomkey() |
String |
rename(String oldkey,
String newkey) |
boolean |
renamenx(String oldkey,
String brandnewkey) |
T |
rpop(String listKey) |
void |
rpush(String listkey,
T value) |
boolean |
sadd(String setkey,
T member) |
void |
save() |
long |
scard(String setKey) |
JRedis |
select(int index) |
void |
set(String key,
T value) |
boolean |
setnx(String key,
T value) |
void |
shutdown() |
List<T> |
sinter(String set1,
String... sets) |
void |
sinterstore(String destSetKey,
String... sets) |
boolean |
sismember(String setKey,
T member) |
List<T> |
smembers(String setkey) |
SemanticSort<T> |
sort(String key) |
boolean |
srem(String setKey,
T member) |
RedisType |
type(String key) |
getCodec, registerJRedis auth(String authorization) throws RedisException
authorization - key as defined in the server.RedisException - if the server is in secure more and the
authorization providedJRedis ping() throws RedisException
RedisException - (as of ver. 0.09) in case of unauthorized accessvoid quit()
void set(String key, T value) throws RedisException
RedisExceptionboolean setnx(String key, T value) throws RedisException
RedisExceptionT get(String key) throws RedisException
RedisExceptionList<T> mget(String key, String... moreKeys) throws RedisException
RedisExceptionlong incr(String key) throws RedisException
RedisExceptionlong incrby(String key, int delta) throws RedisException
RedisExceptionlong decr(String key) throws RedisException
RedisExceptionlong decrby(String key, int delta) throws RedisException
RedisExceptionboolean exists(String key) throws RedisException
RedisExceptionboolean del(String key) throws RedisException
RedisExceptionRedisType type(String key) throws RedisException
RedisExceptionList<String> keys() throws RedisException
RedisExceptionList<String> keys(String pattern) throws RedisException
RedisExceptionString randomkey() throws RedisException
RedisExceptionString rename(String oldkey, String newkey) throws RedisException
RedisExceptionboolean renamenx(String oldkey, String brandnewkey) throws RedisException
RedisExceptionlong dbsize()
throws RedisException
RedisExceptionboolean expire(String key, int ttlseconds) throws RedisException
RedisExceptionvoid rpush(String listkey, T value) throws RedisException
RedisExceptionvoid lpush(String listkey, T value) throws RedisException
RedisExceptionvoid lset(String key, int index, T value) throws RedisException
RedisExceptionlong lrem(String listKey, T value, int count) throws RedisException
RedisExceptionlong llen(String listkey) throws RedisException
RedisExceptionList<T> lrange(String listkey, int from, int to) throws RedisException
RedisExceptionvoid ltrim(String listkey, int keepFrom, int keepTo) throws RedisException
RedisExceptionT lindex(String listkey, int index) throws RedisException
RedisExceptionT lpop(String listKey) throws RedisException
RedisExceptionT rpop(String listKey) throws RedisException
RedisExceptionboolean sadd(String setkey, T member) throws RedisException
RedisExceptionboolean srem(String setKey, T member) throws RedisException
RedisExceptionboolean sismember(String setKey, T member) throws RedisException
RedisExceptionlong scard(String setKey) throws RedisException
RedisExceptionList<T> sinter(String set1, String... sets) throws RedisException
RedisExceptionvoid sinterstore(String destSetKey, String... sets) throws RedisException
RedisExceptionList<T> smembers(String setkey) throws RedisException
RedisExceptionJRedis select(int index) throws RedisException
RedisExceptionJRedis flushdb() throws RedisException
RedisExceptionJRedis flushall() throws RedisException
RedisExceptionboolean move(String key, int dbIndex) throws RedisException
RedisExceptionSemanticSort<T> sort(String key)
void save() throws RedisException
RedisExceptionvoid bgsave()
throws RedisException
RedisExceptionlong lastsave()
throws RedisException
RedisExceptionvoid shutdown()
throws RedisException
RedisExceptionMap<String,String> info() throws RedisException
RedisExceptionCopyright © 2009–2021. All rights reserved.