public interface StringRedisConnection extends RedisConnection
RedisConnection that accepts and returns Strings 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.BitOperationRedisListCommands.PositionRedisZSetCommands.Aggregate, RedisZSetCommands.TupleRedisServerCommands.ShutdownOptionclose, closePipeline, getNativeConnection, getSentinelConnection, isClosed, isPipelined, isQueueing, openPipelineexecutedel, dump, exists, expire, expireAt, keys, move, persist, pExpire, pExpireAt, pTtl, randomKey, rename, renameNX, restore, scan, sort, sort, ttl, typeappend, bitCount, bitCount, bitOp, decr, decrBy, get, getBit, getRange, getSet, incr, incrBy, incrBy, mGet, mSet, mSetNX, pSetEx, set, setBit, setEx, setNX, setRange, strLenbLPop, bRPop, bRPopLPush, lIndex, lInsert, lLen, lPop, lPush, lPushX, lRange, lRem, lSet, lTrim, rPop, rPopLPush, rPush, rPushXsAdd, sCard, sDiff, sDiffStore, sInter, sInterStore, sIsMember, sMembers, sMove, sPop, sRandMember, sRandMember, sRem, sScan, sUnion, sUnionStorezAdd, zAdd, zCard, zCount, zIncrBy, zInterStore, zInterStore, zRange, zRangeByScore, zRangeByScore, zRangeByScoreWithScores, zRangeByScoreWithScores, zRangeWithScores, zRank, zRem, zRemRange, zRemRangeByScore, zRevRange, zRevRangeByScore, zRevRangeByScore, zRevRangeByScoreWithScores, zRevRangeByScoreWithScores, zRevRangeWithScores, zRevRank, zScan, zScore, zUnionStore, zUnionStorehDel, hExists, hGet, hGetAll, hIncrBy, hIncrBy, hKeys, hLen, hMGet, hMSet, hScan, hSet, hSetNX, hValsdiscard, exec, multi, unwatch, watchgetSubscription, isSubscribed, pSubscribe, publish, subscribeecho, ping, selectbgReWriteAof, bgSave, bgWriteAof, dbSize, flushAll, flushDb, getClientName, getConfig, info, info, killClient, lastSave, resetConfigStats, save, setClientName, setConfig, shutdown, shutdown, slaveOf, slaveOfNoOne, timeeval, evalSha, scriptExists, scriptFlush, scriptKill, scriptLoadCollection<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.key - seconds - value - http://redis.io/commands/psetexBoolean 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()
RedisServerCommandsgetClientList in interface RedisServerCommandsList 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)