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, register
JRedis 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
RedisException
boolean setnx(String key, T value) throws RedisException
RedisException
T get(String key) throws RedisException
RedisException
List<T> mget(String key, String... moreKeys) throws RedisException
RedisException
long incr(String key) throws RedisException
RedisException
long incrby(String key, int delta) throws RedisException
RedisException
long decr(String key) throws RedisException
RedisException
long decrby(String key, int delta) throws RedisException
RedisException
boolean exists(String key) throws RedisException
RedisException
boolean del(String key) throws RedisException
RedisException
RedisType type(String key) throws RedisException
RedisException
List<String> keys() throws RedisException
RedisException
List<String> keys(String pattern) throws RedisException
RedisException
String randomkey() throws RedisException
RedisException
String rename(String oldkey, String newkey) throws RedisException
RedisException
boolean renamenx(String oldkey, String brandnewkey) throws RedisException
RedisException
long dbsize() throws RedisException
RedisException
boolean expire(String key, int ttlseconds) throws RedisException
RedisException
void rpush(String listkey, T value) throws RedisException
RedisException
void lpush(String listkey, T value) throws RedisException
RedisException
void lset(String key, int index, T value) throws RedisException
RedisException
long lrem(String listKey, T value, int count) throws RedisException
RedisException
long llen(String listkey) throws RedisException
RedisException
List<T> lrange(String listkey, int from, int to) throws RedisException
RedisException
void ltrim(String listkey, int keepFrom, int keepTo) throws RedisException
RedisException
T lindex(String listkey, int index) throws RedisException
RedisException
T lpop(String listKey) throws RedisException
RedisException
T rpop(String listKey) throws RedisException
RedisException
boolean sadd(String setkey, T member) throws RedisException
RedisException
boolean srem(String setKey, T member) throws RedisException
RedisException
boolean sismember(String setKey, T member) throws RedisException
RedisException
long scard(String setKey) throws RedisException
RedisException
List<T> sinter(String set1, String... sets) throws RedisException
RedisException
void sinterstore(String destSetKey, String... sets) throws RedisException
RedisException
List<T> smembers(String setkey) throws RedisException
RedisException
JRedis select(int index) throws RedisException
RedisException
JRedis flushdb() throws RedisException
RedisException
JRedis flushall() throws RedisException
RedisException
boolean move(String key, int dbIndex) throws RedisException
RedisException
SemanticSort<T> sort(String key)
void save() throws RedisException
RedisException
void bgsave() throws RedisException
RedisException
long lastsave() throws RedisException
RedisException
void shutdown() throws RedisException
RedisException
Map<String,String> info() throws RedisException
RedisException
Copyright © 2009–2015. All rights reserved.