public interface StringRedisConnection extends RedisConnection
RedisConnection
that accepts and returns String
s instead of byte arrays.
Uses a RedisSerializer
underneath to perform the conversion.RedisCallback
,
RedisSerializer
,
StringRedisTemplate
Modifier and Type | Interface and Description |
---|---|
static interface |
StringRedisConnection.StringTuple
String-friendly ZSet tuple.
|
RedisStringCommands.BitOperation
RedisListCommands.Position
RedisZSetCommands.Aggregate, RedisZSetCommands.Tuple
RedisServerCommands.ShutdownOption
close, closePipeline, getNativeConnection, getSentinelConnection, isClosed, isPipelined, isQueueing, openPipeline
execute
del, dump, exists, expire, expireAt, keys, move, persist, pExpire, pExpireAt, pTtl, randomKey, rename, renameNX, restore, scan, sort, sort, ttl, type
append, bitCount, bitCount, bitOp, decr, decrBy, get, getBit, getRange, getSet, incr, incrBy, incrBy, mGet, mSet, mSetNX, pSetEx, set, setBit, setEx, setNX, setRange, strLen
bLPop, bRPop, bRPopLPush, lIndex, lInsert, lLen, lPop, lPush, lPushX, lRange, lRem, lSet, lTrim, rPop, rPopLPush, rPush, rPushX
sAdd, sCard, sDiff, sDiffStore, sInter, sInterStore, sIsMember, sMembers, sMove, sPop, sRandMember, sRandMember, sRem, sScan, sUnion, sUnionStore
zAdd, zAdd, zCard, zCount, zIncrBy, zInterStore, zInterStore, zRange, zRangeByScore, zRangeByScore, zRangeByScore, zRangeByScore, zRangeByScoreWithScores, zRangeByScoreWithScores, zRangeWithScores, zRank, zRem, zRemRange, zRemRangeByScore, zRevRange, zRevRangeByScore, zRevRangeByScore, zRevRangeByScoreWithScores, zRevRangeByScoreWithScores, zRevRangeWithScores, zRevRank, zScan, zScore, zUnionStore, zUnionStore
hDel, hExists, hGet, hGetAll, hIncrBy, hIncrBy, hKeys, hLen, hMGet, hMSet, hScan, hSet, hSetNX, hVals
discard, exec, multi, unwatch, watch
getSubscription, isSubscribed, pSubscribe, publish, subscribe
echo, ping, select
bgReWriteAof, bgSave, bgWriteAof, dbSize, flushAll, flushDb, getClientName, getConfig, info, info, killClient, lastSave, resetConfigStats, save, setClientName, setConfig, shutdown, shutdown, slaveOf, slaveOfNoOne, time
eval, evalSha, evalSha, scriptExists, scriptFlush, scriptKill, scriptLoad
pfAdd, pfCount, pfMerge
Collection<String> keys(String pattern)
List<String> sort(String key, SortParameters params)
Long sort(String key, SortParameters params, String storeKey)
void pSetEx(String key, long milliseconds, String value)
value
and expiration in milliseconds
for key
.
See http://redis.io/commands/psetex
key
- milliseconds
- value
- Boolean setBit(String key, long offset, boolean value)
offset
in value stored at key
.key
- offset
- value
- offset
.Long bitOp(RedisStringCommands.BitOperation op, String destination, String... keys)
void lTrim(String key, long start, long end)
Long lInsert(String key, RedisListCommands.Position where, String pivot, String value)
Long zAdd(String key, Set<StringRedisConnection.StringTuple> tuples)
Set<StringRedisConnection.StringTuple> zRangeWithScores(String key, long start, long end)
Set<StringRedisConnection.StringTuple> zRevRangeWithScores(String key, long start, long end)
Set<StringRedisConnection.StringTuple> zRevRangeByScoreWithScores(String key, double min, double max)
Set<String> zRevRangeByScore(String key, double min, double max, long offset, long count)
Set<StringRedisConnection.StringTuple> zRevRangeByScoreWithScores(String key, double min, double max, long offset, long count)
Set<StringRedisConnection.StringTuple> zRangeByScoreWithScores(String key, double min, double max)
Set<String> zRangeByScore(String key, double min, double max, long offset, long count)
Set<StringRedisConnection.StringTuple> zRangeByScoreWithScores(String key, double min, double max, long offset, long count)
Long zUnionStore(String destKey, RedisZSetCommands.Aggregate aggregate, int[] weights, String... sets)
Long zInterStore(String destKey, RedisZSetCommands.Aggregate aggregate, int[] weights, String... sets)
void subscribe(MessageListener listener, String... channels)
void pSubscribe(MessageListener listener, String... patterns)
<T> T eval(String script, ReturnType returnType, int numKeys, String... keysAndArgs)
<T> T evalSha(String scriptSha1, ReturnType returnType, int numKeys, String... keysAndArgs)
void setClientName(String name)
name
to connection using registered RedisSerializer
for name conversion.name
- RedisServerCommands.setClientName(byte[])
List<RedisClientInfo> getClientList()
RedisServerCommands
See http://redis.io/commands/client-list
getClientList
in interface RedisServerCommands
List
of RedisClientInfo
objects.RedisServerCommands.getClientList()
Cursor<Map.Entry<String,String>> hScan(String key, ScanOptions options)
key
- options
- RedisHashCommands.hScan(byte[], ScanOptions)
Cursor<String> sScan(String key, ScanOptions options)
key
- options
- RedisSetCommands.sScan(byte[], ScanOptions)
Cursor<StringRedisConnection.StringTuple> zScan(String key, ScanOptions options)
key
- options
- RedisZSetCommands.zScan(byte[], ScanOptions)
Set<byte[]> zRangeByScore(String key, String min, String max)
key
- min
- max
- Set<byte[]> zRangeByScore(String key, String min, String max, long offset, long count)
key
- min
- max
- offset
- count
- Long pfAdd(String key, String... values)
key
- values
-