Interface DefaultedRedisConnection
- All Superinterfaces:
RedisCommands
,RedisCommandsProvider
,RedisConnectionCommands
,RedisGeoCommands
,RedisHashCommands
,RedisHyperLogLogCommands
,RedisKeyCommands
,RedisListCommands
,RedisPubSubCommands
,RedisScriptingCommands
,RedisServerCommands
,RedisSetCommands
,RedisStreamCommands
,RedisStringCommands
,RedisTxCommands
,RedisZSetCommands
- All Known Subinterfaces:
DefaultedRedisClusterConnection
,RedisClusterConnection
,RedisConnection
,RedisConnectionUtils.RedisConnectionProxy
,StringRedisConnection
- All Known Implementing Classes:
AbstractRedisConnection
,DefaultStringRedisConnection
,JedisClusterConnection
,JedisConnection
,LettuceClusterConnection
,LettuceConnection
Deprecated.
DefaultedRedisConnection
provides method delegates to Redis*Command
interfaces accessible via
RedisConnection
. This allows us to maintain backwards compatibility while moving the actual implementation
and stay in sync with ReactiveRedisConnection
. Going forward the RedisCommands
extension is likely to
be removed from RedisConnection
.- Since:
- 2.0
- Author:
- Christoph Strobl, Mark Paluch, Tugdual Grall, Andrey Shlykov, dengliming, ihaohong, Dennis Neufeld, Shyngys Sapraliyev
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.data.redis.connection.RedisGeoCommands
RedisGeoCommands.DistanceUnit, RedisGeoCommands.GeoCommandArgs, RedisGeoCommands.GeoLocation<T>, RedisGeoCommands.GeoRadiusCommandArgs, RedisGeoCommands.GeoSearchCommandArgs, RedisGeoCommands.GeoSearchStoreCommandArgs
Nested classes/interfaces inherited from interface org.springframework.data.redis.connection.RedisListCommands
RedisListCommands.Direction, RedisListCommands.Position
Nested classes/interfaces inherited from interface org.springframework.data.redis.connection.RedisServerCommands
RedisServerCommands.FlushOption, RedisServerCommands.MigrateOption, RedisServerCommands.ShutdownOption
Nested classes/interfaces inherited from interface org.springframework.data.redis.connection.RedisStreamCommands
RedisStreamCommands.XAddOptions, RedisStreamCommands.XClaimOptions, RedisStreamCommands.XPendingOptions
Nested classes/interfaces inherited from interface org.springframework.data.redis.connection.RedisStringCommands
RedisStringCommands.BitOperation, RedisStringCommands.SetOption
Nested classes/interfaces inherited from interface org.springframework.data.redis.connection.RedisZSetCommands
RedisZSetCommands.Limit, RedisZSetCommands.Range, RedisZSetCommands.ZAddArgs
-
Method Summary
Modifier and TypeMethodDescriptiondefault Long
append
(byte[] key, byte[] value) Deprecated.default void
Deprecated.in favor ofRedisCommandsProvider.serverCommands()
.default void
bgSave()
Deprecated.in favor ofRedisCommandsProvider.serverCommands()
.default Long
bitCount
(byte[] key) Deprecated.in favor ofRedisCommandsProvider.stringCommands()
}.default Long
bitCount
(byte[] key, long start, long end) Deprecated.in favor ofRedisCommandsProvider.stringCommands()
}.bitField
(byte[] key, BitFieldSubCommands subCommands) Deprecated.in favor ofRedisCommandsProvider.stringCommands()
}.default Long
bitOp
(RedisStringCommands.BitOperation op, byte[] destination, byte[]... keys) Deprecated.in favor ofRedisCommandsProvider.stringCommands()
}.default Long
Deprecated.in favor ofRedisCommandsProvider.stringCommands()
}.default byte[]
bLMove
(byte[] sourceKey, byte[] destinationKey, RedisListCommands.Direction from, RedisListCommands.Direction to, double timeout) Deprecated.in favor ofRedisCommandsProvider.listCommands()
}.default List<byte[]>
bLPop
(int timeout, byte[]... keys) Deprecated.in favor ofRedisCommandsProvider.listCommands()
}.default List<byte[]>
bRPop
(int timeout, byte[]... keys) Deprecated.in favor ofRedisCommandsProvider.listCommands()
}.default byte[]
bRPopLPush
(int timeout, byte[] srcKey, byte[] dstKey) Deprecated.in favor ofRedisCommandsProvider.listCommands()
}.default Tuple
Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.default Tuple
Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.default Boolean
copy
(byte[] sourceKey, byte[] targetKey, boolean replace) Deprecated.in favor ofRedisCommandsProvider.keyCommands()
.default Long
dbSize()
Deprecated.in favor ofRedisCommandsProvider.serverCommands()
.default Long
decr
(byte[] key) Deprecated.in favor ofRedisCommandsProvider.stringCommands()
}.default Long
decrBy
(byte[] key, long value) Deprecated.in favor ofRedisCommandsProvider.stringCommands()
}.default Long
del
(byte[]... keys) Deprecated.in favor ofRedisCommandsProvider.keyCommands()
.default byte[]
dump
(byte[] key) Deprecated.in favor ofRedisCommandsProvider.keyCommands()
.default ValueEncoding
encodingOf
(byte[] key) Deprecated.in favor ofRedisCommandsProvider.keyCommands()
.default <T> T
eval
(byte[] script, ReturnType returnType, int numKeys, byte[]... keysAndArgs) Deprecated.in favor ofRedisCommandsProvider.scriptingCommands()
.default <T> T
evalSha
(byte[] scriptSha, ReturnType returnType, int numKeys, byte[]... keysAndArgs) Deprecated.in favor ofRedisCommandsProvider.scriptingCommands()
.default <T> T
evalSha
(String scriptSha, ReturnType returnType, int numKeys, byte[]... keysAndArgs) Deprecated.in favor ofRedisCommandsProvider.scriptingCommands()
.default Boolean
exists
(byte[] key) Deprecated.in favor ofRedisCommandsProvider.keyCommands()
.default Long
exists
(byte[]... keys) Deprecated.in favor ofRedisCommandsProvider.keyCommands()
.default Boolean
expire
(byte[] key, long seconds) Deprecated.in favor ofRedisCommandsProvider.keyCommands()
.default Boolean
expireAt
(byte[] key, long unixTime) Deprecated.in favor ofRedisCommandsProvider.keyCommands()
.default void
flushAll()
Deprecated.in favor ofRedisCommandsProvider.serverCommands()
.default void
Deprecated.in favor ofRedisCommandsProvider.serverCommands()
.default void
flushDb()
Deprecated.in favor ofRedisCommandsProvider.serverCommands()
.default void
Deprecated.in favor ofRedisCommandsProvider.serverCommands()
.default Long
geoAdd
(byte[] key, Iterable<RedisGeoCommands.GeoLocation<byte[]>> locations) Deprecated.in favor ofRedisCommandsProvider.geoCommands()
}.default Long
Deprecated.in favor ofRedisCommandsProvider.geoCommands()
}.default Long
Deprecated.in favor ofRedisCommandsProvider.geoCommands()
}.default Distance
geoDist
(byte[] key, byte[] member1, byte[] member2) Deprecated.in favor ofRedisCommandsProvider.geoCommands()
}.default Distance
Deprecated.in favor ofRedisCommandsProvider.geoCommands()
}.geoHash
(byte[] key, byte[]... members) Deprecated.in favor ofRedisCommandsProvider.geoCommands()
}.geoPos
(byte[] key, byte[]... members) Deprecated.in favor ofRedisCommandsProvider.geoCommands()
}.default GeoResults<RedisGeoCommands.GeoLocation<byte[]>>
Deprecated.in favor ofRedisCommandsProvider.geoCommands()
}.default GeoResults<RedisGeoCommands.GeoLocation<byte[]>>
geoRadius
(byte[] key, Circle within, RedisGeoCommands.GeoRadiusCommandArgs args) Deprecated.in favor ofRedisCommandsProvider.geoCommands()
}.default GeoResults<RedisGeoCommands.GeoLocation<byte[]>>
geoRadiusByMember
(byte[] key, byte[] member, Distance radius) Deprecated.in favor ofRedisCommandsProvider.geoCommands()
}.default GeoResults<RedisGeoCommands.GeoLocation<byte[]>>
geoRadiusByMember
(byte[] key, byte[] member, Distance radius, RedisGeoCommands.GeoRadiusCommandArgs args) Deprecated.in favor ofRedisCommandsProvider.geoCommands()
}.default Long
geoRemove
(byte[] key, byte[]... members) Deprecated.in favor ofRedisCommandsProvider.geoCommands()
}.default GeoResults<RedisGeoCommands.GeoLocation<byte[]>>
geoSearch
(byte[] key, GeoReference<byte[]> reference, GeoShape predicate, RedisGeoCommands.GeoSearchCommandArgs args) Deprecated.in favor ofRedisCommandsProvider.geoCommands()
}.default Long
geoSearchStore
(byte[] destKey, byte[] key, GeoReference<byte[]> reference, GeoShape predicate, RedisGeoCommands.GeoSearchStoreCommandArgs args) Deprecated.in favor ofRedisCommandsProvider.geoCommands()
}.default byte[]
get
(byte[] key) Deprecated.in favor ofRedisCommandsProvider.stringCommands()
}.default Boolean
getBit
(byte[] key, long offset) Deprecated.in favor ofRedisCommandsProvider.stringCommands()
}.default List<RedisClientInfo>
Deprecated.in favor ofRedisCommandsProvider.serverCommands()
.default String
Deprecated.in favor ofRedisCommandsProvider.serverCommands()
.default Properties
Deprecated.in favor ofRedisCommandsProvider.serverCommands()
.default byte[]
getDel
(byte[] key) Deprecated.in favor ofRedisCommandsProvider.stringCommands()
}.default byte[]
getEx
(byte[] key, Expiration expiration) Deprecated.in favor ofRedisCommandsProvider.stringCommands()
}.default byte[]
getRange
(byte[] key, long start, long end) Deprecated.in favor ofRedisCommandsProvider.stringCommands()
}.default byte[]
getSet
(byte[] key, byte[] value) Deprecated.in favor ofRedisCommandsProvider.stringCommands()
}.default Long
hDel
(byte[] key, byte[]... fields) Deprecated.in favor ofRedisCommandsProvider.hashCommands()
}.default Boolean
hExists
(byte[] key, byte[] field) Deprecated.in favor ofRedisCommandsProvider.hashCommands()
}.default byte[]
hGet
(byte[] key, byte[] field) Deprecated.in favor ofRedisCommandsProvider.hashCommands()
}.default Map<byte[],
byte[]> hGetAll
(byte[] key) Deprecated.in favor ofRedisCommandsProvider.hashCommands()
}.default Double
hIncrBy
(byte[] key, byte[] field, double delta) Deprecated.in favor ofRedisCommandsProvider.hashCommands()
}.default Long
hIncrBy
(byte[] key, byte[] field, long delta) Deprecated.in favor ofRedisCommandsProvider.hashCommands()
}.default Set<byte[]>
hKeys
(byte[] key) Deprecated.in favor ofRedisCommandsProvider.hashCommands()
}.default Long
hLen
(byte[] key) Deprecated.Get size of hash atkey
.default List<byte[]>
hMGet
(byte[] key, byte[]... fields) Deprecated.in favor ofRedisCommandsProvider.hashCommands()
}.default void
Deprecated.in favor ofRedisCommandsProvider.hashCommands()
}.default byte[]
hRandField
(byte[] key) Deprecated.in favor ofRedisCommandsProvider.hashCommands()
}.default List<byte[]>
hRandField
(byte[] key, long count) Deprecated.in favor ofRedisCommandsProvider.hashCommands()
}.default Map.Entry<byte[],
byte[]> hRandFieldWithValues
(byte[] key) Deprecated.in favor ofRedisCommandsProvider.hashCommands()
}.hRandFieldWithValues
(byte[] key, long count) Deprecated.in favor ofRedisCommandsProvider.hashCommands()
}.hScan
(byte[] key, ScanOptions options) Deprecated.in favor ofRedisCommandsProvider.hashCommands()
}.default Boolean
hSet
(byte[] key, byte[] field, byte[] value) Deprecated.in favor ofRedisCommandsProvider.hashCommands()
}.default Boolean
hSetNX
(byte[] key, byte[] field, byte[] value) Deprecated.in favor ofRedisCommandsProvider.hashCommands()
}.default Long
hStrLen
(byte[] key, byte[] field) Deprecated.in favor ofRedisCommandsProvider.hashCommands()
.default List<byte[]>
hVals
(byte[] key) Deprecated.in favor ofRedisCommandsProvider.hashCommands()
}.default Duration
idletime
(byte[] key) Deprecated.in favor ofRedisCommandsProvider.keyCommands()
.default Long
incr
(byte[] key) Deprecated.in favor ofRedisCommandsProvider.stringCommands()
}.default Double
incrBy
(byte[] key, double value) Deprecated.in favor ofRedisCommandsProvider.stringCommands()
}.default Long
incrBy
(byte[] key, long value) Deprecated.in favor ofRedisCommandsProvider.stringCommands()
}.default Properties
info()
Deprecated.in favor ofRedisCommandsProvider.serverCommands()
.default Properties
Deprecated.in favor ofRedisCommandsProvider.serverCommands()
.default Set<byte[]>
keys
(byte[] pattern) Deprecated.in favor ofRedisCommandsProvider.keyCommands()
.default void
killClient
(String host, int port) Deprecated.in favor ofRedisCommandsProvider.serverCommands()
.default Long
lastSave()
Deprecated.in favor ofRedisCommandsProvider.serverCommands()
.default byte[]
lIndex
(byte[] key, long index) Deprecated.in favor ofRedisCommandsProvider.listCommands()
}.default Long
lInsert
(byte[] key, RedisListCommands.Position where, byte[] pivot, byte[] value) Deprecated.in favor ofRedisCommandsProvider.listCommands()
}.default Long
lLen
(byte[] key) Deprecated.in favor ofRedisCommandsProvider.listCommands()
}.default byte[]
lMove
(byte[] sourceKey, byte[] destinationKey, RedisListCommands.Direction from, RedisListCommands.Direction to) Deprecated.in favor ofRedisCommandsProvider.listCommands()
}.default byte[]
lPop
(byte[] key) Deprecated.in favor ofRedisCommandsProvider.listCommands()
}.default List<byte[]>
lPop
(byte[] key, long count) Deprecated.in favor ofRedisCommandsProvider.listCommands()
}.Deprecated.in favor ofRedisCommandsProvider.listCommands()
}.default Long
lPush
(byte[] key, byte[]... values) Deprecated.in favor ofRedisCommandsProvider.listCommands()
}.default Long
lPushX
(byte[] key, byte[] value) Deprecated.in favor ofRedisCommandsProvider.listCommands()
}.default List<byte[]>
lRange
(byte[] key, long start, long end) Deprecated.in favor ofRedisCommandsProvider.listCommands()
}.default Long
lRem
(byte[] key, long count, byte[] value) Deprecated.in favor ofRedisCommandsProvider.listCommands()
}.default void
lSet
(byte[] key, long index, byte[] value) Deprecated.in favor ofRedisCommandsProvider.listCommands()
}.default void
lTrim
(byte[] key, long start, long end) Deprecated.in favor ofRedisCommandsProvider.listCommands()
}.default List<byte[]>
mGet
(byte[]... keys) Deprecated.in favor ofRedisCommandsProvider.stringCommands()
}.default void
migrate
(byte[] key, RedisNode target, int dbIndex, RedisServerCommands.MigrateOption option) Deprecated.in favor ofRedisCommandsProvider.serverCommands()
.default void
migrate
(byte[] key, RedisNode target, int dbIndex, RedisServerCommands.MigrateOption option, long timeout) Deprecated.in favor ofRedisCommandsProvider.serverCommands()
.default Boolean
move
(byte[] key, int dbIndex) Deprecated.in favor ofRedisCommandsProvider.keyCommands()
.default Boolean
Deprecated.in favor ofRedisCommandsProvider.stringCommands()
}.default Boolean
Deprecated.in favor ofRedisCommandsProvider.stringCommands()
}.default Boolean
persist
(byte[] key) Deprecated.in favor ofRedisCommandsProvider.keyCommands()
.default Boolean
pExpire
(byte[] key, long millis) Deprecated.in favor ofRedisCommandsProvider.keyCommands()
.default Boolean
pExpireAt
(byte[] key, long unixTimeInMillis) Deprecated.in favor ofRedisCommandsProvider.keyCommands()
.default Long
pfAdd
(byte[] key, byte[]... values) Deprecated.in favor ofRedisCommandsProvider.hyperLogLogCommands()
.default Long
pfCount
(byte[]... keys) Deprecated.in favor ofRedisCommandsProvider.hyperLogLogCommands()
.default void
pfMerge
(byte[] destinationKey, byte[]... sourceKeys) Deprecated.in favor ofRedisCommandsProvider.hyperLogLogCommands()
.default Boolean
pSetEx
(byte[] key, long milliseconds, byte[] value) Deprecated.in favor ofRedisCommandsProvider.stringCommands()
}.default Long
pTtl
(byte[] key) Deprecated.in favor ofRedisCommandsProvider.keyCommands()
.default Long
Deprecated.in favor ofRedisCommandsProvider.keyCommands()
.default byte[]
Deprecated.in favor ofRedisCommandsProvider.keyCommands()
.default Long
refcount
(byte[] key) Deprecated.in favor ofRedisCommandsProvider.keyCommands()
.default void
rename
(byte[] oldKey, byte[] newKey) Deprecated.in favor ofRedisCommandsProvider.keyCommands()
.default Boolean
renameNX
(byte[] sourceKey, byte[] targetKey) Deprecated.in favor ofRedisCommandsProvider.keyCommands()
.default void
Deprecated.in favor ofRedisCommandsProvider.serverCommands()
.default void
Deprecated.in favor ofRedisCommandsProvider.serverCommands()
.default void
Deprecated.in favor ofRedisCommandsProvider.serverCommands()
.default void
restore
(byte[] key, long ttlInMillis, byte[] serializedValue, boolean replace) Deprecated.in favor ofRedisCommandsProvider.keyCommands()
.default void
Deprecated.in favor ofRedisCommandsProvider.serverCommands()
.default byte[]
rPop
(byte[] key) Deprecated.in favor ofRedisCommandsProvider.listCommands()
}.default List<byte[]>
rPop
(byte[] key, long count) Deprecated.in favor ofRedisCommandsProvider.listCommands()
}.default byte[]
rPopLPush
(byte[] srcKey, byte[] dstKey) Deprecated.in favor ofRedisCommandsProvider.listCommands()
}.default Long
rPush
(byte[] key, byte[]... values) Deprecated.in favor ofRedisCommandsProvider.listCommands()
}.default Long
rPushX
(byte[] key, byte[] value) Deprecated.in favor ofRedisCommandsProvider.listCommands()
}.default Long
sAdd
(byte[] key, byte[]... values) Deprecated.in favor ofRedisCommandsProvider.setCommands()
}.default void
save()
Deprecated.in favor ofRedisCommandsProvider.serverCommands()
.default Cursor<byte[]>
scan
(ScanOptions options) Deprecated.in favor ofRedisCommandsProvider.keyCommands()
.default Long
sCard
(byte[] key) Deprecated.in favor ofRedisCommandsProvider.setCommands()
}.scriptExists
(String... scriptShas) Deprecated.in favor ofRedisCommandsProvider.scriptingCommands()
.default void
Deprecated.in favor ofRedisCommandsProvider.scriptingCommands()
.default void
Deprecated.in favor ofRedisCommandsProvider.scriptingCommands()
.default String
scriptLoad
(byte[] script) Deprecated.in favor ofRedisCommandsProvider.scriptingCommands()
.default Set<byte[]>
sDiff
(byte[]... keys) Deprecated.in favor ofRedisCommandsProvider.setCommands()
}.default Long
sDiffStore
(byte[] destKey, byte[]... keys) Deprecated.in favor ofRedisCommandsProvider.setCommands()
}.default Boolean
set
(byte[] key, byte[] value) Deprecated.in favor ofRedisCommandsProvider.stringCommands()
}.default Boolean
set
(byte[] key, byte[] value, Expiration expiration, RedisStringCommands.SetOption option) Deprecated.in favor ofRedisCommandsProvider.stringCommands()
}.default Boolean
setBit
(byte[] key, long offset, boolean value) Deprecated.in favor ofRedisCommandsProvider.stringCommands()
}.default void
setClientName
(byte[] name) Deprecated.in favor ofRedisCommandsProvider.serverCommands()
.default void
Deprecated.in favor ofRedisCommandsProvider.serverCommands()
.default Boolean
setEx
(byte[] key, long seconds, byte[] value) Deprecated.in favor ofRedisCommandsProvider.stringCommands()
}.default Boolean
setNX
(byte[] key, byte[] value) Deprecated.in favor ofRedisCommandsProvider.stringCommands()
}.default void
setRange
(byte[] key, byte[] value, long offset) Deprecated.in favor ofRedisCommandsProvider.stringCommands()
}.default void
shutdown()
Deprecated.in favor ofRedisCommandsProvider.serverCommands()
.default void
Deprecated.in favor ofRedisCommandsProvider.serverCommands()
.default Set<byte[]>
sInter
(byte[]... keys) Deprecated.in favor ofRedisCommandsProvider.setCommands()
}.default Long
sInterStore
(byte[] destKey, byte[]... keys) Deprecated.in favor ofRedisCommandsProvider.setCommands()
}.default Boolean
sIsMember
(byte[] key, byte[] value) Deprecated.in favor ofRedisCommandsProvider.setCommands()
}.default Set<byte[]>
sMembers
(byte[] key) Deprecated.in favor ofRedisCommandsProvider.setCommands()
}.sMIsMember
(byte[] key, byte[]... value) Deprecated.in favor ofRedisCommandsProvider.setCommands()
}.default Boolean
sMove
(byte[] srcKey, byte[] destKey, byte[] value) Deprecated.in favor ofRedisCommandsProvider.setCommands()
}.default List<byte[]>
sort
(byte[] key, SortParameters params) Deprecated.in favor ofRedisCommandsProvider.keyCommands()
.default Long
sort
(byte[] key, SortParameters params, byte[] sortKey) Deprecated.in favor ofRedisCommandsProvider.keyCommands()
.default byte[]
sPop
(byte[] key) Deprecated.in favor ofRedisCommandsProvider.setCommands()
}.default List<byte[]>
sPop
(byte[] key, long count) Deprecated.in favor ofRedisCommandsProvider.setCommands()
}.default byte[]
sRandMember
(byte[] key) Deprecated.in favor ofRedisCommandsProvider.setCommands()
}.default List<byte[]>
sRandMember
(byte[] key, long count) Deprecated.in favor ofRedisCommandsProvider.setCommands()
}.default Long
sRem
(byte[] key, byte[]... values) Deprecated.in favor ofRedisCommandsProvider.setCommands()
}.default Cursor<byte[]>
sScan
(byte[] key, ScanOptions options) Deprecated.in favor ofRedisCommandsProvider.setCommands()
}.default Long
strLen
(byte[] key) Deprecated.in favor ofRedisCommandsProvider.stringCommands()
}.default Set<byte[]>
sUnion
(byte[]... keys) Deprecated.in favor ofRedisCommandsProvider.setCommands()
}.default Long
sUnionStore
(byte[] destKey, byte[]... keys) Deprecated.in favor ofRedisCommandsProvider.setCommands()
}.default Long
time()
Deprecated.in favor ofRedisCommandsProvider.serverCommands()
.default Long
Deprecated.in favor ofRedisCommandsProvider.serverCommands()
.default Long
touch
(byte[]... keys) Deprecated.in favor ofRedisCommandsProvider.keyCommands()
.default Long
ttl
(byte[] key) Deprecated.in favor ofRedisCommandsProvider.keyCommands()
.default Long
Deprecated.in favor ofRedisCommandsProvider.keyCommands()
.default DataType
type
(byte[] pattern) Deprecated.in favor ofRedisCommandsProvider.keyCommands()
.default Long
unlink
(byte[]... keys) Deprecated.in favor ofRedisCommandsProvider.keyCommands()
.default Long
Deprecated.in favor ofRedisCommandsProvider.streamCommands()
}.default RecordId
xAdd
(MapRecord<byte[], byte[], byte[]> record, RedisStreamCommands.XAddOptions options) Deprecated.in favor ofRedisCommandsProvider.streamCommands()
}.default List<ByteRecord>
xClaim
(byte[] key, String group, String newOwner, RedisStreamCommands.XClaimOptions options) Deprecated.in favor ofRedisCommandsProvider.streamCommands()
}.xClaimJustId
(byte[] key, String group, String newOwner, RedisStreamCommands.XClaimOptions options) Deprecated.in favor ofRedisCommandsProvider.streamCommands()
}.default Long
Deprecated.in favor ofRedisCommandsProvider.streamCommands()
}.default String
xGroupCreate
(byte[] key, String groupName, ReadOffset readOffset) Deprecated.in favor ofRedisCommandsProvider.streamCommands()
}.default String
xGroupCreate
(byte[] key, String groupName, ReadOffset readOffset, boolean mkStream) Deprecated.in favor ofRedisCommandsProvider.streamCommands()
}.default Boolean
xGroupDelConsumer
(byte[] key, Consumer consumer) Deprecated.in favor ofRedisCommandsProvider.streamCommands()
}.default Boolean
xGroupDestroy
(byte[] key, String groupName) Deprecated.in favor ofRedisCommandsProvider.streamCommands()
}.default StreamInfo.XInfoStream
xInfo
(byte[] key) Deprecated.in favor ofRedisCommandsProvider.streamCommands()
}.default StreamInfo.XInfoConsumers
xInfoConsumers
(byte[] key, String groupName) Deprecated.in favor ofRedisCommandsProvider.streamCommands()
}.default StreamInfo.XInfoGroups
xInfoGroups
(byte[] key) Deprecated.in favor ofRedisCommandsProvider.streamCommands()
}.default Long
xLen
(byte[] key) Deprecated.in favor ofRedisCommandsProvider.streamCommands()
}.default PendingMessagesSummary
Deprecated.in favor ofRedisCommandsProvider.streamCommands()
}.default PendingMessages
xPending
(byte[] key, String groupName, RedisStreamCommands.XPendingOptions options) Deprecated.in favor ofRedisCommandsProvider.streamCommands()
}.default List<ByteRecord>
Deprecated.in favor ofRedisCommandsProvider.streamCommands()
}.default List<ByteRecord>
Deprecated.in favor ofRedisCommandsProvider.streamCommands()
}.default List<ByteRecord>
xRead
(StreamOffset<byte[]>... streams) Deprecated.in favor ofRedisCommandsProvider.streamCommands()
}.default List<ByteRecord>
xRead
(StreamReadOptions readOptions, StreamOffset<byte[]>... streams) Deprecated.in favor ofRedisCommandsProvider.streamCommands()
}.default List<ByteRecord>
xReadGroup
(Consumer consumer, StreamOffset<byte[]>... streams) Deprecated.in favor ofRedisCommandsProvider.streamCommands()
}.default List<ByteRecord>
xReadGroup
(Consumer consumer, StreamReadOptions readOptions, StreamOffset<byte[]>... streams) Deprecated.in favor ofRedisCommandsProvider.streamCommands()
}.default List<ByteRecord>
Deprecated.in favor ofRedisCommandsProvider.streamCommands()
}.default List<ByteRecord>
Deprecated.in favor ofRedisCommandsProvider.streamCommands()
}.default Long
xTrim
(byte[] key, long count) Deprecated.in favor ofRedisCommandsProvider.streamCommands()
}.default Long
xTrim
(byte[] key, long count, boolean approximateTrimming) Deprecated.default Boolean
zAdd
(byte[] key, double score, byte[] value, RedisZSetCommands.ZAddArgs args) Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.default Long
zAdd
(byte[] key, Set<Tuple> tuples, RedisZSetCommands.ZAddArgs args) Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.default Long
zCard
(byte[] key) Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.default Long
zCount
(byte[] key, double min, double max) Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.default Long
Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.default Set<byte[]>
zDiff
(byte[]... sets) Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.default Long
zDiffStore
(byte[] destKey, byte[]... sets) Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.zDiffWithScores
(byte[]... sets) Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.default Double
zIncrBy
(byte[] key, double increment, byte[] value) Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.default Set<byte[]>
zInter
(byte[]... sets) Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.default Long
zInterStore
(byte[] destKey, byte[]... sets) Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.default Long
zInterStore
(byte[] destKey, Aggregate aggregate, int[] weights, byte[]... sets) Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.default Long
zInterStore
(byte[] destKey, Aggregate aggregate, Weights weights, byte[]... sets) Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.zInterWithScores
(byte[]... sets) Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.zInterWithScores
(Aggregate aggregate, int[] weights, byte[]... sets) Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.zInterWithScores
(Aggregate aggregate, Weights weights, byte[]... sets) Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.default Long
Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.zMScore
(byte[] key, byte[]... values) Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.default Tuple
zPopMax
(byte[] key) Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.zPopMax
(byte[] key, long count) Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.default Tuple
zPopMin
(byte[] key) Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.zPopMin
(byte[] key, long count) Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.default byte[]
zRandMember
(byte[] key) Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.default List<byte[]>
zRandMember
(byte[] key, long count) Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.default Tuple
zRandMemberWithScore
(byte[] key) Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.zRandMemberWithScore
(byte[] key, long count) Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.default Set<byte[]>
zRange
(byte[] key, long start, long end) Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.default Set<byte[]>
zRangeByLex
(byte[] key, Range<byte[]> range, Limit limit) Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.default Set<byte[]>
zRangeByScore
(byte[] key, String min, String max) Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.default Set<byte[]>
zRangeByScore
(byte[] key, String min, String max, long offset, long count) Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.default Set<byte[]>
zRangeByScore
(byte[] key, Range<? extends Number> range, Limit limit) Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.zRangeByScoreWithScores
(byte[] key, Range<? extends Number> range, Limit limit) Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.default Long
zRangeStoreByLex
(byte[] dstKey, byte[] srcKey, Range<byte[]> range, Limit limit) Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.default Long
zRangeStoreByScore
(byte[] dstKey, byte[] srcKey, Range<? extends Number> range, Limit limit) Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.default Long
zRangeStoreRevByLex
(byte[] dstKey, byte[] srcKey, Range<byte[]> range, Limit limit) Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.default Long
zRangeStoreRevByScore
(byte[] dstKey, byte[] srcKey, Range<? extends Number> range, Limit limit) Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.zRangeWithScores
(byte[] key, long start, long end) Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.default Long
zRank
(byte[] key, byte[] value) Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.default Long
zRem
(byte[] key, byte[]... values) Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.default Long
zRemRange
(byte[] key, long start, long end) Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.default Long
zRemRangeByLex
(byte[] key, Range<byte[]> range) Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.default Long
zRemRangeByScore
(byte[] key, double min, double max) Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.default Long
zRemRangeByScore
(byte[] key, Range<? extends Number> range) Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.default Set<byte[]>
zRevRange
(byte[] key, long start, long end) Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.default Set<byte[]>
zRevRangeByLex
(byte[] key, Range<byte[]> range, Limit limit) Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.default Set<byte[]>
zRevRangeByScore
(byte[] key, Range<? extends Number> range, Limit limit) Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.zRevRangeByScoreWithScores
(byte[] key, Range<? extends Number> range, Limit limit) Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.zRevRangeWithScores
(byte[] key, long start, long end) Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.default Long
zRevRank
(byte[] key, byte[] value) Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.zScan
(byte[] key, ScanOptions options) Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.default Double
zScore
(byte[] key, byte[] value) Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.default Set<byte[]>
zUnion
(byte[]... sets) Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.default Long
zUnionStore
(byte[] destKey, byte[]... sets) Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.default Long
zUnionStore
(byte[] destKey, Aggregate aggregate, int[] weights, byte[]... sets) Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.default Long
zUnionStore
(byte[] destKey, Aggregate aggregate, Weights weights, byte[]... sets) Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.zUnionWithScores
(byte[]... sets) Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.zUnionWithScores
(Aggregate aggregate, int[] weights, byte[]... sets) Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.zUnionWithScores
(Aggregate aggregate, Weights weights, byte[]... sets) Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.Methods inherited from interface org.springframework.data.redis.connection.RedisCommands
execute
Methods inherited from interface org.springframework.data.redis.connection.RedisCommandsProvider
commands, geoCommands, hashCommands, hyperLogLogCommands, keyCommands, listCommands, scriptingCommands, serverCommands, setCommands, streamCommands, stringCommands, zSetCommands
Methods inherited from interface org.springframework.data.redis.connection.RedisConnectionCommands
echo, ping, select
Methods inherited from interface org.springframework.data.redis.connection.RedisGeoCommands
geoAdd, geoRadiusByMember
Methods inherited from interface org.springframework.data.redis.connection.RedisKeyCommands
restore, scan
Methods inherited from interface org.springframework.data.redis.connection.RedisListCommands
lPos
Methods inherited from interface org.springframework.data.redis.connection.RedisPubSubCommands
getSubscription, isSubscribed, pSubscribe, publish, subscribe
Methods inherited from interface org.springframework.data.redis.connection.RedisStreamCommands
xAck, xAdd, xAdd, xClaim, xDel, xGroupDelConsumer, xPending, xPending, xPending, xPending, xPending
Methods inherited from interface org.springframework.data.redis.connection.RedisStringCommands
bitPos
Methods inherited from interface org.springframework.data.redis.connection.RedisTxCommands
discard, exec, multi, unwatch, watch
Methods inherited from interface org.springframework.data.redis.connection.RedisZSetCommands
zAdd, zAdd, zRangeByLex, zRangeByLex, zRangeByScore, zRangeByScore, zRangeByScore, zRangeByScoreWithScores, zRangeByScoreWithScores, zRangeByScoreWithScores, zRangeStoreByLex, zRangeStoreByScore, zRangeStoreRevByLex, zRangeStoreRevByScore, zRevRangeByLex, zRevRangeByLex, zRevRangeByScore, zRevRangeByScore, zRevRangeByScore, zRevRangeByScoreWithScores, zRevRangeByScoreWithScores, zRevRangeByScoreWithScores
-
Method Details
-
copy
Deprecated.in favor ofRedisCommandsProvider.keyCommands()
.Description copied from interface:RedisKeyCommands
Copy givensourceKey
totargetKey
.- Specified by:
copy
in interfaceRedisKeyCommands
- Parameters:
sourceKey
- must not be null.targetKey
- must not be null.replace
- whether to replace existing keys.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
exists
Deprecated.in favor ofRedisCommandsProvider.keyCommands()
.Description copied from interface:RedisKeyCommands
Determine if givenkey
exists.- Specified by:
exists
in interfaceRedisKeyCommands
- Parameters:
key
- must not be null.- Returns:
- true if key exists. null when used in pipeline / transaction.
- See Also:
-
exists
Deprecated.in favor ofRedisCommandsProvider.keyCommands()
.Description copied from interface:RedisKeyCommands
Count how many of the givenkeys
exist. Providing the very samekey
more than once also counts multiple times.- Specified by:
exists
in interfaceRedisKeyCommands
- Parameters:
keys
- must not be null.- Returns:
- the number of keys existing among the ones specified as arguments. null when used in pipeline / transaction.
-
del
Deprecated.in favor ofRedisCommandsProvider.keyCommands()
.Description copied from interface:RedisKeyCommands
Delete givenkeys
.- Specified by:
del
in interfaceRedisKeyCommands
- Parameters:
keys
- must not be null.- Returns:
- The number of keys that were removed. null when used in pipeline / transaction.
- See Also:
-
unlink
Deprecated.in favor ofRedisCommandsProvider.keyCommands()
.Description copied from interface:RedisKeyCommands
Unlink thekeys
from the keyspace. Unlike withRedisKeyCommands.del(byte[]...)
the actual memory reclaiming here happens asynchronously.- Specified by:
unlink
in interfaceRedisKeyCommands
- Parameters:
keys
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
type
Deprecated.in favor ofRedisCommandsProvider.keyCommands()
.Description copied from interface:RedisKeyCommands
Determine the type stored atkey
.- Specified by:
type
in interfaceRedisKeyCommands
- Parameters:
pattern
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
touch
Deprecated.in favor ofRedisCommandsProvider.keyCommands()
.Description copied from interface:RedisKeyCommands
Alter the last access time of givenkey(s)
.- Specified by:
touch
in interfaceRedisKeyCommands
- Parameters:
keys
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
keys
Deprecated.in favor ofRedisCommandsProvider.keyCommands()
.Description copied from interface:RedisKeyCommands
Find all keys matching the givenpattern
.- Specified by:
keys
in interfaceRedisKeyCommands
- Parameters:
pattern
- must not be null.- Returns:
- empty
Set
if no match found. null when used in pipeline / transaction. - See Also:
-
scan
Deprecated.in favor ofRedisCommandsProvider.keyCommands()
.Description copied from interface:RedisKeyCommands
Use aCursor
to iterate over keys.- Specified by:
scan
in interfaceRedisKeyCommands
- Parameters:
options
- must not be null.- Returns:
- never null.
- See Also:
-
randomKey
Deprecated.in favor ofRedisCommandsProvider.keyCommands()
.Description copied from interface:RedisKeyCommands
Return a random key from the keyspace.- Specified by:
randomKey
in interfaceRedisKeyCommands
- Returns:
- null if no keys available or when used in pipeline or transaction.
- See Also:
-
rename
Deprecated.in favor ofRedisCommandsProvider.keyCommands()
.Description copied from interface:RedisKeyCommands
Rename keyoldKey
tonewKey
.- Specified by:
rename
in interfaceRedisKeyCommands
- Parameters:
oldKey
- must not be null.newKey
- must not be null.- See Also:
-
renameNX
Deprecated.in favor ofRedisCommandsProvider.keyCommands()
.Description copied from interface:RedisKeyCommands
Rename keyoldKey
tonewKey
only ifnewKey
does not exist.- Specified by:
renameNX
in interfaceRedisKeyCommands
- Parameters:
sourceKey
- must not be null.targetKey
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
expire
Deprecated.in favor ofRedisCommandsProvider.keyCommands()
.Description copied from interface:RedisKeyCommands
Set time to live for givenkey
in seconds.- Specified by:
expire
in interfaceRedisKeyCommands
- Parameters:
key
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
persist
Deprecated.in favor ofRedisCommandsProvider.keyCommands()
.Description copied from interface:RedisKeyCommands
Remove the expiration from givenkey
.- Specified by:
persist
in interfaceRedisKeyCommands
- Parameters:
key
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
move
Deprecated.in favor ofRedisCommandsProvider.keyCommands()
.Description copied from interface:RedisKeyCommands
Move givenkey
to database withindex
.- Specified by:
move
in interfaceRedisKeyCommands
- Parameters:
key
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
restore
@Deprecated default void restore(byte[] key, long ttlInMillis, byte[] serializedValue, boolean replace) Deprecated.in favor ofRedisCommandsProvider.keyCommands()
.Description copied from interface:RedisKeyCommands
- Specified by:
restore
in interfaceRedisKeyCommands
- Parameters:
key
- must not be null.serializedValue
- must not be null.replace
- use true to replace a potentially existing value instead of erroring.- See Also:
-
pTtl
Deprecated.in favor ofRedisCommandsProvider.keyCommands()
.Description copied from interface:RedisKeyCommands
Get the precise time to live forkey
in milliseconds.- Specified by:
pTtl
in interfaceRedisKeyCommands
- Parameters:
key
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
pTtl
Deprecated.in favor ofRedisCommandsProvider.keyCommands()
.Description copied from interface:RedisKeyCommands
Get the precise time to live forkey
in and convert it to the givenTimeUnit
.- Specified by:
pTtl
in interfaceRedisKeyCommands
- Parameters:
key
- must not be null.timeUnit
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
pExpire
Deprecated.in favor ofRedisCommandsProvider.keyCommands()
.Description copied from interface:RedisKeyCommands
Set time to live for givenkey
in milliseconds.- Specified by:
pExpire
in interfaceRedisKeyCommands
- Parameters:
key
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
pExpireAt
Deprecated.in favor ofRedisCommandsProvider.keyCommands()
.Description copied from interface:RedisKeyCommands
Set the expiration for givenkey
as a UNIX timestamp in milliseconds.- Specified by:
pExpireAt
in interfaceRedisKeyCommands
- Parameters:
key
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
expireAt
Deprecated.in favor ofRedisCommandsProvider.keyCommands()
.Description copied from interface:RedisKeyCommands
Set the expiration for givenkey
as a UNIX timestamp.- Specified by:
expireAt
in interfaceRedisKeyCommands
- Parameters:
key
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
ttl
Deprecated.in favor ofRedisCommandsProvider.keyCommands()
.Description copied from interface:RedisKeyCommands
Get the time to live forkey
in seconds.- Specified by:
ttl
in interfaceRedisKeyCommands
- Parameters:
key
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
ttl
Deprecated.in favor ofRedisCommandsProvider.keyCommands()
.Description copied from interface:RedisKeyCommands
Get the time to live forkey
in and convert it to the givenTimeUnit
.- Specified by:
ttl
in interfaceRedisKeyCommands
- Parameters:
key
- must not be null.timeUnit
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
dump
Deprecated.in favor ofRedisCommandsProvider.keyCommands()
.Description copied from interface:RedisKeyCommands
Retrieve serialized version of the value stored atkey
.- Specified by:
dump
in interfaceRedisKeyCommands
- Parameters:
key
- must not be null.- Returns:
- null if key does not exist or when used in pipeline / transaction.
- See Also:
-
sort
Deprecated.in favor ofRedisCommandsProvider.keyCommands()
.Description copied from interface:RedisKeyCommands
Sort the elements forkey
.- Specified by:
sort
in interfaceRedisKeyCommands
- Parameters:
key
- must not be null.params
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
sort
Deprecated.in favor ofRedisCommandsProvider.keyCommands()
.Description copied from interface:RedisKeyCommands
Sort the elements forkey
and store result instoreKey
.- Specified by:
sort
in interfaceRedisKeyCommands
- Parameters:
key
- must not be null.params
- must not be null.sortKey
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
encodingOf
Deprecated.in favor ofRedisCommandsProvider.keyCommands()
.Description copied from interface:RedisKeyCommands
Get the type of internal representation used for storing the value at the givenkey
.- Specified by:
encodingOf
in interfaceRedisKeyCommands
- Parameters:
key
- must not be null.- Returns:
ValueEncoding.RedisValueEncoding.VACANT
if key does not exist or null when used in pipeline / transaction.- See Also:
-
idletime
Deprecated.in favor ofRedisCommandsProvider.keyCommands()
.Description copied from interface:RedisKeyCommands
Get theDuration
since the object stored at the givenkey
is idle.- Specified by:
idletime
in interfaceRedisKeyCommands
- Parameters:
key
- must not be null.- Returns:
- null if key does not exist or when used in pipeline / transaction.
- See Also:
-
refcount
Deprecated.in favor ofRedisCommandsProvider.keyCommands()
.Description copied from interface:RedisKeyCommands
Get the number of references of the value associated with the specifiedkey
.- Specified by:
refcount
in interfaceRedisKeyCommands
- Parameters:
key
- must not be null.- Returns:
- null if key does not exist or when used in pipeline / transaction.
- See Also:
-
get
Deprecated.in favor ofRedisCommandsProvider.stringCommands()
}.Description copied from interface:RedisStringCommands
Get the value ofkey
.- Specified by:
get
in interfaceRedisStringCommands
- Parameters:
key
- must not be null.- Returns:
- null when key does not exist or used in pipeline / transaction.
- See Also:
-
getEx
Deprecated.in favor ofRedisCommandsProvider.stringCommands()
}.Description copied from interface:RedisStringCommands
Return the value atkey
and expire the key by applyingExpiration
.Use
Expiration.seconds(long)
forEX
.
UseExpiration.milliseconds(long)
forPX
.
UseExpiration.unixTimestamp(long, TimeUnit)
forEXAT | PXAT
.- Specified by:
getEx
in interfaceRedisStringCommands
- Parameters:
key
- must not be null.expiration
- must not be null.- Returns:
- null when key does not exist or used in pipeline / transaction.
- See Also:
-
getDel
Deprecated.in favor ofRedisCommandsProvider.stringCommands()
}.Description copied from interface:RedisStringCommands
Return the value atkey
and delete the key.- Specified by:
getDel
in interfaceRedisStringCommands
- Parameters:
key
- must not be null.- Returns:
- null when key does not exist or used in pipeline / transaction.
- See Also:
-
getSet
Deprecated.in favor ofRedisCommandsProvider.stringCommands()
}.Description copied from interface:RedisStringCommands
Setvalue
ofkey
and return its old value.- Specified by:
getSet
in interfaceRedisStringCommands
- Parameters:
key
- must not be null.value
- must not be null.- Returns:
- null if key did not exist before or when used in pipeline / transaction.
- See Also:
-
mGet
Deprecated.in favor ofRedisCommandsProvider.stringCommands()
}.Description copied from interface:RedisStringCommands
Get multiplekeys
. Values are in the order of the requested keys Absent field values are represented using null in the resultingList
.- Specified by:
mGet
in interfaceRedisStringCommands
- Parameters:
keys
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
set
Deprecated.in favor ofRedisCommandsProvider.stringCommands()
}.Description copied from interface:RedisStringCommands
Setvalue
forkey
.- Specified by:
set
in interfaceRedisStringCommands
- Parameters:
key
- must not be null.value
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
set
@Deprecated default Boolean set(byte[] key, byte[] value, Expiration expiration, RedisStringCommands.SetOption option) Deprecated.in favor ofRedisCommandsProvider.stringCommands()
}.Description copied from interface:RedisStringCommands
Setvalue
forkey
applying timeouts fromexpiration
if set and inserting/updating values depending onoption
.- Specified by:
set
in interfaceRedisStringCommands
- Parameters:
key
- must not be null.value
- must not be null.expiration
- must not be null. UseExpiration.persistent()
to not set any ttl orExpiration.keepTtl()
to keep the existing expiration.option
- must not be null. UseRedisStringCommands.SetOption.upsert()
to add non existing.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
setNX
Deprecated.in favor ofRedisCommandsProvider.stringCommands()
}.Description copied from interface:RedisStringCommands
Setvalue
forkey
, only ifkey
does not exist.- Specified by:
setNX
in interfaceRedisStringCommands
- Parameters:
key
- must not be null.value
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
setEx
Deprecated.in favor ofRedisCommandsProvider.stringCommands()
}.Description copied from interface:RedisStringCommands
Set thevalue
and expiration inseconds
forkey
.- Specified by:
setEx
in interfaceRedisStringCommands
- Parameters:
key
- must not be null.value
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
pSetEx
Deprecated.in favor ofRedisCommandsProvider.stringCommands()
}.Description copied from interface:RedisStringCommands
Set thevalue
and expiration inmilliseconds
forkey
.- Specified by:
pSetEx
in interfaceRedisStringCommands
- Parameters:
key
- must not be null.value
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
mSet
Deprecated.in favor ofRedisCommandsProvider.stringCommands()
}.Description copied from interface:RedisStringCommands
Set multiple keys to multiple values using key-value pairs provided intuple
.- Specified by:
mSet
in interfaceRedisStringCommands
- Parameters:
tuple
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
mSetNX
Deprecated.in favor ofRedisCommandsProvider.stringCommands()
}.Description copied from interface:RedisStringCommands
Set multiple keys to multiple values using key-value pairs provided intuple
only if the provided key does not exist.- Specified by:
mSetNX
in interfaceRedisStringCommands
- Parameters:
tuple
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
incr
Deprecated.in favor ofRedisCommandsProvider.stringCommands()
}.Description copied from interface:RedisStringCommands
Increment an integer value stored as string value ofkey
by 1.- Specified by:
incr
in interfaceRedisStringCommands
- Parameters:
key
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
incrBy
Deprecated.in favor ofRedisCommandsProvider.stringCommands()
}.Description copied from interface:RedisStringCommands
Increment a floating point number value ofkey
bydelta
.- Specified by:
incrBy
in interfaceRedisStringCommands
- Parameters:
key
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
incrBy
Deprecated.in favor ofRedisCommandsProvider.stringCommands()
}.Description copied from interface:RedisStringCommands
Increment an integer value stored ofkey
bydelta
.- Specified by:
incrBy
in interfaceRedisStringCommands
- Parameters:
key
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
decr
Deprecated.in favor ofRedisCommandsProvider.stringCommands()
}.Description copied from interface:RedisStringCommands
Decrement an integer value stored as string value ofkey
by 1.- Specified by:
decr
in interfaceRedisStringCommands
- Parameters:
key
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
decrBy
Deprecated.in favor ofRedisCommandsProvider.stringCommands()
}.Description copied from interface:RedisStringCommands
Decrement an integer value stored as string value ofkey
byvalue
.- Specified by:
decrBy
in interfaceRedisStringCommands
- Parameters:
key
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
append
Deprecated.in favor ofRedisCommandsProvider.stringCommands()
}.Description copied from interface:RedisStringCommands
Append avalue
tokey
.- Specified by:
append
in interfaceRedisStringCommands
- Parameters:
key
- must not be null.value
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
getRange
Deprecated.in favor ofRedisCommandsProvider.stringCommands()
}.Description copied from interface:RedisStringCommands
Get a substring of value ofkey
betweenstart
andend
.- Specified by:
getRange
in interfaceRedisStringCommands
- Parameters:
key
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
setRange
Deprecated.in favor ofRedisCommandsProvider.stringCommands()
}.Description copied from interface:RedisStringCommands
Overwrite parts ofkey
starting at the specifiedoffset
with givenvalue
.- Specified by:
setRange
in interfaceRedisStringCommands
- Parameters:
key
- must not be null.- See Also:
-
getBit
Deprecated.in favor ofRedisCommandsProvider.stringCommands()
}.Description copied from interface:RedisStringCommands
Get the bit value atoffset
of value atkey
.- Specified by:
getBit
in interfaceRedisStringCommands
- Parameters:
key
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
setBit
Deprecated.in favor ofRedisCommandsProvider.stringCommands()
}.Description copied from interface:RedisStringCommands
Sets the bit atoffset
in value stored atkey
.- Specified by:
setBit
in interfaceRedisStringCommands
- Parameters:
key
- must not be null.- Returns:
- the original bit value stored at
offset
or null when used in pipeline / transaction. - See Also:
-
bitCount
Deprecated.in favor ofRedisCommandsProvider.stringCommands()
}.Description copied from interface:RedisStringCommands
Count the number of set bits (population counting) in value stored atkey
.- Specified by:
bitCount
in interfaceRedisStringCommands
- Parameters:
key
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
bitCount
Deprecated.in favor ofRedisCommandsProvider.stringCommands()
}.Description copied from interface:RedisStringCommands
Count the number of set bits (population counting) of value stored atkey
betweenstart
andend
.- Specified by:
bitCount
in interfaceRedisStringCommands
- Parameters:
key
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
bitField
Deprecated.in favor ofRedisCommandsProvider.stringCommands()
}.Description copied from interface:RedisStringCommands
Get / Manipulate specific integer fields of varying bit widths and arbitrary non (necessary) aligned offset stored at a givenkey
.- Specified by:
bitField
in interfaceRedisStringCommands
- Parameters:
key
- must not be null.subCommands
- must not be null.- Returns:
- null when used in pipeline / transaction.
-
bitOp
@Deprecated default Long bitOp(RedisStringCommands.BitOperation op, byte[] destination, byte[]... keys) Deprecated.in favor ofRedisCommandsProvider.stringCommands()
}.Description copied from interface:RedisStringCommands
Perform bitwise operations between strings.- Specified by:
bitOp
in interfaceRedisStringCommands
- Parameters:
op
- must not be null.destination
- must not be null.keys
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
bitPos
Deprecated.in favor ofRedisCommandsProvider.stringCommands()
}.Description copied from interface:RedisStringCommands
Return the position of the first bit set to givenbit
in a string.Range
start and end can contain negative values in order to index bytes starting from the end of the string, where -1 is the last byte, -2 is the penultimate.- Specified by:
bitPos
in interfaceRedisStringCommands
- Parameters:
key
- the key holding the actual String.bit
- the bit value to look for.range
- must not be null. UseRange.unbounded()
to not limit search.- Returns:
- null when used in pipeline / transaction. The position of the first bit set to 1 or 0 according to the request.
- See Also:
-
strLen
Deprecated.in favor ofRedisCommandsProvider.stringCommands()
}.Description copied from interface:RedisStringCommands
Get the length of the value stored atkey
.- Specified by:
strLen
in interfaceRedisStringCommands
- Parameters:
key
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
xAck
Deprecated.in favor ofRedisCommandsProvider.streamCommands()
}.Description copied from interface:RedisStreamCommands
Acknowledge one or more records, identified via their id, as processed.- Specified by:
xAck
in interfaceRedisStreamCommands
- Parameters:
key
- the key the stream is stored at.group
- name of the consumer group.messageIds
- the id's of the records to acknowledge.- Returns:
- length of acknowledged messages. null when used in pipeline / transaction.
- See Also:
-
xAdd
@Deprecated default RecordId xAdd(MapRecord<byte[], byte[], byte[]> record, RedisStreamCommands.XAddOptions options) Deprecated.in favor ofRedisCommandsProvider.streamCommands()
}.Description copied from interface:RedisStreamCommands
Append the givenrecord
to the stream stored atRecord#getStream
. If you prefer manual id assignment over server generated ones make sure to provide an id viaRecord#withId
.- Specified by:
xAdd
in interfaceRedisStreamCommands
- Parameters:
record
- therecord
to append.options
- additional options (eg. MAXLEN). Must not be null, useRedisStreamCommands.XAddOptions.none()
instead.- Returns:
- the
id
after save. null when used in pipeline / transaction.
-
xClaimJustId
@Deprecated default List<RecordId> xClaimJustId(byte[] key, String group, String newOwner, RedisStreamCommands.XClaimOptions options) Deprecated.in favor ofRedisCommandsProvider.streamCommands()
}.Description copied from interface:RedisStreamCommands
Change the ownership of a pending message to the given new consumer without increasing the delivered count.- Specified by:
xClaimJustId
in interfaceRedisStreamCommands
- Parameters:
key
- the key the stream is stored at.group
- the name of the consumer group.newOwner
- the name of the new consumer.options
- must not be null.- Returns:
- list of
ids
that changed user. - See Also:
-
xClaim
@Deprecated default List<ByteRecord> xClaim(byte[] key, String group, String newOwner, RedisStreamCommands.XClaimOptions options) Deprecated.in favor ofRedisCommandsProvider.streamCommands()
}.Description copied from interface:RedisStreamCommands
Change the ownership of a pending message to the given new consumer.- Specified by:
xClaim
in interfaceRedisStreamCommands
- Parameters:
key
- the key the stream is stored at.group
- the name of the consumer group.newOwner
- the name of the new consumer.options
- must not be null.- Returns:
- list of
ByteRecord
that changed user. - See Also:
-
xDel
Deprecated.in favor ofRedisCommandsProvider.streamCommands()
}.Description copied from interface:RedisStreamCommands
Removes the records with the given id's from the stream. Returns the number of items deleted, that may be different from the number of id's passed in case certain id's do not exist.- Specified by:
xDel
in interfaceRedisStreamCommands
- Parameters:
key
- the key the stream is stored at.recordIds
- the id's of the records to remove.- Returns:
- number of removed entries. null when used in pipeline / transaction.
- See Also:
-
xGroupCreate
Deprecated.in favor ofRedisCommandsProvider.streamCommands()
}.Description copied from interface:RedisStreamCommands
Create a consumer group.- Specified by:
xGroupCreate
in interfaceRedisStreamCommands
- Parameters:
key
- the key the stream is stored at.groupName
- name of the consumer group to create.readOffset
- the offset to start at.- Returns:
- ok if successful. null when used in pipeline / transaction.
-
xGroupCreate
@Deprecated default String xGroupCreate(byte[] key, String groupName, ReadOffset readOffset, boolean mkStream) Deprecated.in favor ofRedisCommandsProvider.streamCommands()
}.Description copied from interface:RedisStreamCommands
Create a consumer group.- Specified by:
xGroupCreate
in interfaceRedisStreamCommands
- Parameters:
key
- the key the stream is stored at.groupName
- name of the consumer group to create.readOffset
- the offset to start at.mkStream
- if true the group will create the stream if not already present (MKSTREAM)- Returns:
- ok if successful. null when used in pipeline / transaction.
-
xGroupDelConsumer
Deprecated.in favor ofRedisCommandsProvider.streamCommands()
}.Description copied from interface:RedisStreamCommands
Delete a consumer from a consumer group.- Specified by:
xGroupDelConsumer
in interfaceRedisStreamCommands
- Parameters:
key
- the key the stream is stored at.consumer
- consumer identified by group name and consumer name.- Returns:
- true if successful. null when used in pipeline / transaction.
-
xGroupDestroy
Deprecated.in favor ofRedisCommandsProvider.streamCommands()
}.Description copied from interface:RedisStreamCommands
Destroy a consumer group.- Specified by:
xGroupDestroy
in interfaceRedisStreamCommands
- Parameters:
key
- the key the stream is stored at.groupName
- name of the consumer group.- Returns:
- true if successful. null when used in pipeline / transaction.
-
xInfo
Deprecated.in favor ofRedisCommandsProvider.streamCommands()
}.Description copied from interface:RedisStreamCommands
Obtain general information about the stream stored at the specified key.- Specified by:
xInfo
in interfaceRedisStreamCommands
- Parameters:
key
- the key the stream is stored at.- Returns:
- null when used in pipeline / transaction.
-
xInfoGroups
Deprecated.in favor ofRedisCommandsProvider.streamCommands()
}.Description copied from interface:RedisStreamCommands
Obtain information about consumer groups associated with the stream stored at the specified key.- Specified by:
xInfoGroups
in interfaceRedisStreamCommands
- Parameters:
key
- the key the stream is stored at.- Returns:
- null when used in pipeline / transaction.
-
xInfoConsumers
Deprecated.in favor ofRedisCommandsProvider.streamCommands()
}.Description copied from interface:RedisStreamCommands
Obtain information about every consumer in a specific consumer group for the stream stored at the specified key.- Specified by:
xInfoConsumers
in interfaceRedisStreamCommands
- Parameters:
key
- the key the stream is stored at.groupName
- name of the consumer group.- Returns:
- null when used in pipeline / transaction.
-
xLen
Deprecated.in favor ofRedisCommandsProvider.streamCommands()
}.Description copied from interface:RedisStreamCommands
Get the length of a stream.- Specified by:
xLen
in interfaceRedisStreamCommands
- Parameters:
key
- the key the stream is stored at.- Returns:
- length of the stream. null when used in pipeline / transaction.
- See Also:
-
xPending
Deprecated.in favor ofRedisCommandsProvider.streamCommands()
}.Description copied from interface:RedisStreamCommands
Obtain thePendingMessagesSummary
for a given consumer group.- Specified by:
xPending
in interfaceRedisStreamCommands
- Parameters:
key
- the key the stream is stored at. Must not be null.groupName
- the name of the consumer group. Must not be null.- Returns:
- a summary of pending messages within the given consumer group or null when used in pipeline / transaction.
- See Also:
-
xPending
@Deprecated default PendingMessages xPending(byte[] key, String groupName, RedisStreamCommands.XPendingOptions options) Deprecated.in favor ofRedisCommandsProvider.streamCommands()
}.Description copied from interface:RedisStreamCommands
- Specified by:
xPending
in interfaceRedisStreamCommands
- Parameters:
key
- the key the stream is stored at. Must not be null.groupName
- the name of the consumer group. Must not be null.options
- the options containing range, consumer and count. Must not be null.- Returns:
- pending messages matching given criteria or null when used in pipeline / transaction.
- See Also:
-
xRange
Deprecated.in favor ofRedisCommandsProvider.streamCommands()
}.Description copied from interface:RedisStreamCommands
Retrieve allrecords
within a specificRange
from the stream stored at key.
UseRange.unbounded()
to read from the minimum and the maximum ID possible.- Specified by:
xRange
in interfaceRedisStreamCommands
- Parameters:
key
- the key the stream is stored at.range
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
xRange
Deprecated.in favor ofRedisCommandsProvider.streamCommands()
}.Description copied from interface:RedisStreamCommands
Retrieve alimited number
ofrecords
within a specificRange
from the stream stored at key.
UseRange.unbounded()
to read from the minimum and the maximum ID possible.
UseLimit.unlimited()
to read all records.- Specified by:
xRange
in interfaceRedisStreamCommands
- Parameters:
key
- the key the stream is stored at.range
- must not be null.limit
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
xRead
Deprecated.in favor ofRedisCommandsProvider.streamCommands()
}.Description copied from interface:RedisStreamCommands
Read records from one or moreStreamOffset
s.- Specified by:
xRead
in interfaceRedisStreamCommands
- Parameters:
streams
- the streams to read from.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
xRead
@Deprecated default List<ByteRecord> xRead(StreamReadOptions readOptions, StreamOffset<byte[]>... streams) Deprecated.in favor ofRedisCommandsProvider.streamCommands()
}.Description copied from interface:RedisStreamCommands
Read records from one or moreStreamOffset
s.- Specified by:
xRead
in interfaceRedisStreamCommands
- Parameters:
readOptions
- read arguments.streams
- the streams to read from.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
xReadGroup
Deprecated.in favor ofRedisCommandsProvider.streamCommands()
}.Description copied from interface:RedisStreamCommands
Read records from one or moreStreamOffset
s using a consumer group.- Specified by:
xReadGroup
in interfaceRedisStreamCommands
- Parameters:
consumer
- consumer/group.streams
- the streams to read from.- Returns:
- list with members of the resulting stream. null when used in pipeline / transaction.
- See Also:
-
xReadGroup
@Deprecated default List<ByteRecord> xReadGroup(Consumer consumer, StreamReadOptions readOptions, StreamOffset<byte[]>... streams) Deprecated.in favor ofRedisCommandsProvider.streamCommands()
}.Description copied from interface:RedisStreamCommands
Read records from one or moreStreamOffset
s using a consumer group.- Specified by:
xReadGroup
in interfaceRedisStreamCommands
- Parameters:
consumer
- consumer/group.readOptions
- read arguments.streams
- the streams to read from.- Returns:
- list with members of the resulting stream. null when used in pipeline / transaction.
- See Also:
-
xRevRange
Deprecated.in favor ofRedisCommandsProvider.streamCommands()
}.Description copied from interface:RedisStreamCommands
Read records from a stream within a specificRange
in reverse order.- Specified by:
xRevRange
in interfaceRedisStreamCommands
- Parameters:
key
- the stream key.range
- must not be null.- Returns:
- list with members of the resulting stream. null when used in pipeline / transaction.
- See Also:
-
xRevRange
Deprecated.in favor ofRedisCommandsProvider.streamCommands()
}.Description copied from interface:RedisStreamCommands
- Specified by:
xRevRange
in interfaceRedisStreamCommands
- Parameters:
key
- the stream key.range
- must not be null.limit
- must not be null.- Returns:
- list with members of the resulting stream. null when used in pipeline / transaction.
- See Also:
-
xTrim
Deprecated.in favor ofRedisCommandsProvider.streamCommands()
}.Description copied from interface:RedisStreamCommands
Trims the stream tocount
elements.- Specified by:
xTrim
in interfaceRedisStreamCommands
- Parameters:
key
- the stream key.count
- length of the stream.- Returns:
- number of removed entries. null when used in pipeline / transaction.
- See Also:
-
xTrim
Deprecated.Description copied from interface:RedisStreamCommands
Trims the stream tocount
elements.- Specified by:
xTrim
in interfaceRedisStreamCommands
- Parameters:
key
- the stream key.count
- length of the stream.approximateTrimming
- the trimming must be performed in a approximated way in order to maximize performances.- Returns:
- number of removed entries. null when used in pipeline / transaction.
- See Also:
-
rPush
Deprecated.in favor ofRedisCommandsProvider.listCommands()
}.Description copied from interface:RedisListCommands
Appendvalues
tokey
.- Specified by:
rPush
in interfaceRedisListCommands
- Parameters:
key
- must not be null.values
- must not be empty.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
lPos
@Deprecated default List<Long> lPos(byte[] key, byte[] element, @Nullable Integer rank, @Nullable Integer count) Deprecated.in favor ofRedisCommandsProvider.listCommands()
}.Description copied from interface:RedisListCommands
Returns the index of matching elements inside the list stored at given key.
Requires Redis 6.0.6 or newer.- Specified by:
lPos
in interfaceRedisListCommands
- Parameters:
key
- must not be null.element
- must not be null.rank
- specifies the "rank" of the first element to return, in case there are multiple matches. A rank of 1 means to return the first match, 2 to return the second match, and so forth.count
- number of matches to return.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
lPush
Deprecated.in favor ofRedisCommandsProvider.listCommands()
}.Description copied from interface:RedisListCommands
Prependvalues
tokey
.- Specified by:
lPush
in interfaceRedisListCommands
- Parameters:
key
- must not be null.values
- must not be empty.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
rPushX
Deprecated.in favor ofRedisCommandsProvider.listCommands()
}.Description copied from interface:RedisListCommands
Appendvalues
tokey
only if the list exists.- Specified by:
rPushX
in interfaceRedisListCommands
- Parameters:
key
- must not be null.value
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
lPushX
Deprecated.in favor ofRedisCommandsProvider.listCommands()
}.Description copied from interface:RedisListCommands
Prependvalues
tokey
only if the list exists.- Specified by:
lPushX
in interfaceRedisListCommands
- Parameters:
key
- must not be null.value
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
lLen
Deprecated.in favor ofRedisCommandsProvider.listCommands()
}.Description copied from interface:RedisListCommands
Get the size of list stored atkey
.- Specified by:
lLen
in interfaceRedisListCommands
- Parameters:
key
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
lRange
Deprecated.in favor ofRedisCommandsProvider.listCommands()
}.Description copied from interface:RedisListCommands
Get elements betweenstart
andend
from list atkey
.- Specified by:
lRange
in interfaceRedisListCommands
- Parameters:
key
- must not be null.- Returns:
- empty
List
if key does not exists or range does not contain values. null when used in pipeline / transaction. - See Also:
-
lTrim
Deprecated.in favor ofRedisCommandsProvider.listCommands()
}.Description copied from interface:RedisListCommands
Trim list atkey
to elements betweenstart
andend
.- Specified by:
lTrim
in interfaceRedisListCommands
- Parameters:
key
- must not be null.- See Also:
-
lIndex
Deprecated.in favor ofRedisCommandsProvider.listCommands()
}.Description copied from interface:RedisListCommands
Get element atindex
form list atkey
.- Specified by:
lIndex
in interfaceRedisListCommands
- Parameters:
key
- must not be null.index
- zero based index value. Use negative number to designate elements starting at the tail.- Returns:
- null when index is out of range or when used in pipeline / transaction.
- See Also:
-
lInsert
@Deprecated default Long lInsert(byte[] key, RedisListCommands.Position where, byte[] pivot, byte[] value) Deprecated.in favor ofRedisCommandsProvider.listCommands()
}.Description copied from interface:RedisListCommands
Insertvalue
RedisListCommands.Position.BEFORE
orRedisListCommands.Position.AFTER
existingpivot
forkey
.- Specified by:
lInsert
in interfaceRedisListCommands
- Parameters:
key
- must not be null.where
- must not be null.pivot
- must not be null.value
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
lMove
@Deprecated default byte[] lMove(byte[] sourceKey, byte[] destinationKey, RedisListCommands.Direction from, RedisListCommands.Direction to) Deprecated.in favor ofRedisCommandsProvider.listCommands()
}.Description copied from interface:RedisListCommands
Atomically returns and removes the first/last element (head/tail depending on thefrom
argument) of the list stored atsourceKey
, and pushes the element at the first/last element (head/tail depending on theto
argument) of the list stored atdestinationKey
.- Specified by:
lMove
in interfaceRedisListCommands
- Parameters:
sourceKey
- must not be null.destinationKey
- must not be null.from
- must not be null.to
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
bLMove
@Deprecated default byte[] bLMove(byte[] sourceKey, byte[] destinationKey, RedisListCommands.Direction from, RedisListCommands.Direction to, double timeout) Deprecated.in favor ofRedisCommandsProvider.listCommands()
}.Description copied from interface:RedisListCommands
Atomically returns and removes the first/last element (head/tail depending on thefrom
argument) of the list stored atsourceKey
, and pushes the element at the first/last element (head/tail depending on theto
argument) of the list stored atdestinationKey
.Blocks connection until element available or
timeout
reached.- Specified by:
bLMove
in interfaceRedisListCommands
- Parameters:
sourceKey
- must not be null.destinationKey
- must not be null.from
- must not be null.to
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
lSet
Deprecated.in favor ofRedisCommandsProvider.listCommands()
}.Description copied from interface:RedisListCommands
Set thevalue
list element atindex
.- Specified by:
lSet
in interfaceRedisListCommands
- Parameters:
key
- must not be null.- See Also:
-
lRem
Deprecated.in favor ofRedisCommandsProvider.listCommands()
}.Description copied from interface:RedisListCommands
Removes the firstcount
occurrences ofvalue
from the list stored atkey
.- Specified by:
lRem
in interfaceRedisListCommands
- Parameters:
key
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
lPop
Deprecated.in favor ofRedisCommandsProvider.listCommands()
}.Description copied from interface:RedisListCommands
Removes and returns first element in list stored atkey
.- Specified by:
lPop
in interfaceRedisListCommands
- Parameters:
key
- must not be null.- Returns:
- null when key does not exist or used in pipeline / transaction.
- See Also:
-
lPop
Deprecated.in favor ofRedisCommandsProvider.listCommands()
}.Description copied from interface:RedisListCommands
Removes and returns first elements in list stored atkey
.- Specified by:
lPop
in interfaceRedisListCommands
- Parameters:
key
- must not be null.- Returns:
- null when key does not exist or used in pipeline / transaction.
- See Also:
-
rPop
Deprecated.in favor ofRedisCommandsProvider.listCommands()
}.Description copied from interface:RedisListCommands
Removes and returns last element in list stored atkey
.- Specified by:
rPop
in interfaceRedisListCommands
- Parameters:
key
- must not be null.- Returns:
- null when key does not exist or used in pipeline / transaction.
- See Also:
-
rPop
Deprecated.in favor ofRedisCommandsProvider.listCommands()
}.Description copied from interface:RedisListCommands
Removes and returns last elements in list stored atkey
.- Specified by:
rPop
in interfaceRedisListCommands
- Parameters:
key
- must not be null.- Returns:
- null when key does not exist or used in pipeline / transaction.
- See Also:
-
bLPop
Deprecated.in favor ofRedisCommandsProvider.listCommands()
}.Description copied from interface:RedisListCommands
Removes and returns first element from lists stored atkeys
.
Blocks connection until element available ortimeout
reached.- Specified by:
bLPop
in interfaceRedisListCommands
- Parameters:
timeout
- seconds to block.keys
- must not be null.- Returns:
- empty
List
when no element could be popped and the timeout was reached. null when used in pipeline / transaction. - See Also:
-
bRPop
Deprecated.in favor ofRedisCommandsProvider.listCommands()
}.Description copied from interface:RedisListCommands
Removes and returns last element from lists stored atkeys
.
Blocks connection until element available ortimeout
reached.- Specified by:
bRPop
in interfaceRedisListCommands
- Parameters:
timeout
- seconds to block.keys
- must not be null.- Returns:
- empty
List
when no element could be popped and the timeout was reached. null when used in pipeline / transaction. - See Also:
-
rPopLPush
Deprecated.in favor ofRedisCommandsProvider.listCommands()
}.Description copied from interface:RedisListCommands
Remove the last element from list atsrcKey
, append it todstKey
and return its value.- Specified by:
rPopLPush
in interfaceRedisListCommands
- Parameters:
srcKey
- must not be null.dstKey
- must not be null.- Returns:
- can be null.
- See Also:
-
bRPopLPush
Deprecated.in favor ofRedisCommandsProvider.listCommands()
}.Description copied from interface:RedisListCommands
Remove the last element from list atsrcKey
, append it todstKey
and return its value.
Blocks connection until element available ortimeout
reached.- Specified by:
bRPopLPush
in interfaceRedisListCommands
- Parameters:
timeout
- seconds to block.srcKey
- must not be null.dstKey
- must not be null.- Returns:
- can be null.
- See Also:
-
sAdd
Deprecated.in favor ofRedisCommandsProvider.setCommands()
}.Description copied from interface:RedisSetCommands
Add givenvalues
to set atkey
.- Specified by:
sAdd
in interfaceRedisSetCommands
- Parameters:
key
- must not be null.values
- must not be empty.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
sCard
Deprecated.in favor ofRedisCommandsProvider.setCommands()
}.Description copied from interface:RedisSetCommands
Get size of set atkey
.- Specified by:
sCard
in interfaceRedisSetCommands
- Parameters:
key
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
sDiff
Deprecated.in favor ofRedisCommandsProvider.setCommands()
}.Description copied from interface:RedisSetCommands
Diff all sets for givenkeys
.- Specified by:
sDiff
in interfaceRedisSetCommands
- Parameters:
keys
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
sDiffStore
Deprecated.in favor ofRedisCommandsProvider.setCommands()
}.Description copied from interface:RedisSetCommands
Diff all sets for givenkeys
and store result indestKey
.- Specified by:
sDiffStore
in interfaceRedisSetCommands
- Parameters:
destKey
- must not be null.keys
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
sInter
Deprecated.in favor ofRedisCommandsProvider.setCommands()
}.Description copied from interface:RedisSetCommands
Returns the members intersecting all given sets atkeys
.- Specified by:
sInter
in interfaceRedisSetCommands
- Parameters:
keys
- must not be null.- Returns:
- empty
Set
if no intersection found. null when used in pipeline / transaction. - See Also:
-
sInterStore
Deprecated.in favor ofRedisCommandsProvider.setCommands()
}.Description copied from interface:RedisSetCommands
Intersect all given sets atkeys
and store result indestKey
.- Specified by:
sInterStore
in interfaceRedisSetCommands
- Parameters:
destKey
- must not be null.keys
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
sIsMember
Deprecated.in favor ofRedisCommandsProvider.setCommands()
}.Description copied from interface:RedisSetCommands
Check if set atkey
containsvalue
.- Specified by:
sIsMember
in interfaceRedisSetCommands
- Parameters:
key
- must not be null.value
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
sMIsMember
Deprecated.in favor ofRedisCommandsProvider.setCommands()
}.Description copied from interface:RedisSetCommands
Check if set atkey
contains one or morevalues
.- Specified by:
sMIsMember
in interfaceRedisSetCommands
- Parameters:
key
- must not be null.value
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
sMembers
Deprecated.in favor ofRedisCommandsProvider.setCommands()
}.Description copied from interface:RedisSetCommands
Get all elements of set atkey
.- Specified by:
sMembers
in interfaceRedisSetCommands
- Parameters:
key
- must not be null.- Returns:
- empty
Set
when key does not exist. null when used in pipeline / transaction. - See Also:
-
sMove
Deprecated.in favor ofRedisCommandsProvider.setCommands()
}.Description copied from interface:RedisSetCommands
Movevalue
fromsrcKey
todestKey
- Specified by:
sMove
in interfaceRedisSetCommands
- Parameters:
srcKey
- must not be null.destKey
- must not be null.value
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
sPop
Deprecated.in favor ofRedisCommandsProvider.setCommands()
}.Description copied from interface:RedisSetCommands
Remove and return a random member from set atkey
.- Specified by:
sPop
in interfaceRedisSetCommands
- Parameters:
key
- must not be null.- Returns:
- null when key does not exist or used in pipeline / transaction.
- See Also:
-
sPop
Deprecated.in favor ofRedisCommandsProvider.setCommands()
}.Description copied from interface:RedisSetCommands
Remove and returncount
random members from set atkey
.- Specified by:
sPop
in interfaceRedisSetCommands
- Parameters:
key
- must not be null.count
- number of random members to pop from the set.- Returns:
- empty
List
if set does not exist. null when used in pipeline / transaction. - See Also:
-
sRandMember
Deprecated.in favor ofRedisCommandsProvider.setCommands()
}.Description copied from interface:RedisSetCommands
Get random element from set atkey
.- Specified by:
sRandMember
in interfaceRedisSetCommands
- Parameters:
key
- must not be null.- Returns:
- can be null.
- See Also:
-
sRandMember
Deprecated.in favor ofRedisCommandsProvider.setCommands()
}.Description copied from interface:RedisSetCommands
Getcount
random elements from set atkey
.- Specified by:
sRandMember
in interfaceRedisSetCommands
- Parameters:
key
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
sRem
Deprecated.in favor ofRedisCommandsProvider.setCommands()
}.Description copied from interface:RedisSetCommands
Remove givenvalues
from set atkey
and return the number of removed elements.- Specified by:
sRem
in interfaceRedisSetCommands
- Parameters:
key
- must not be null.values
- must not be empty.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
sUnion
Deprecated.in favor ofRedisCommandsProvider.setCommands()
}.Description copied from interface:RedisSetCommands
Union all sets at givenkeys
.- Specified by:
sUnion
in interfaceRedisSetCommands
- Parameters:
keys
- must not be null.- Returns:
- empty
Set
if keys do not exist. null when used in pipeline / transaction. - See Also:
-
sUnionStore
Deprecated.in favor ofRedisCommandsProvider.setCommands()
}.Description copied from interface:RedisSetCommands
Union all sets at givenkeys
and store result indestKey
.- Specified by:
sUnionStore
in interfaceRedisSetCommands
- Parameters:
destKey
- must not be null.keys
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
sScan
Deprecated.in favor ofRedisCommandsProvider.setCommands()
}.Description copied from interface:RedisSetCommands
Use aCursor
to iterate over elements in set atkey
.- Specified by:
sScan
in interfaceRedisSetCommands
- Parameters:
key
- must not be null.options
- must not be null.- Returns:
- never null.
- See Also:
-
zAdd
@Deprecated default Boolean zAdd(byte[] key, double score, byte[] value, RedisZSetCommands.ZAddArgs args) Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.Description copied from interface:RedisZSetCommands
- Specified by:
zAdd
in interfaceRedisZSetCommands
- Parameters:
key
- must not be null.score
- the score.value
- the value.args
- must not be null useRedisZSetCommands.ZAddArgs.empty()
instead.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
zAdd
Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.Description copied from interface:RedisZSetCommands
- Specified by:
zAdd
in interfaceRedisZSetCommands
- Parameters:
key
- must not be null.tuples
- must not be null.args
- must not be null useRedisZSetCommands.ZAddArgs.empty()
instead.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
zCard
Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.Description copied from interface:RedisZSetCommands
Get the size of sorted set withkey
.- Specified by:
zCard
in interfaceRedisZSetCommands
- Parameters:
key
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
zCount
Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.Description copied from interface:RedisZSetCommands
Count number of elements within sorted set with scores betweenmin
andmax
.- Specified by:
zCount
in interfaceRedisZSetCommands
- Parameters:
key
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
zLexCount
Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.Description copied from interface:RedisZSetCommands
Count number of elements within sorted set with value betweenRange#min
andRange#max
applying lexicographical ordering.- Specified by:
zLexCount
in interfaceRedisZSetCommands
- Parameters:
key
- must not be null.range
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
zPopMin
Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.Description copied from interface:RedisZSetCommands
Remove and return the value with its score having the lowest score from sorted set atkey
.- Specified by:
zPopMin
in interfaceRedisZSetCommands
- Parameters:
key
- must not be null.- Returns:
- null when the sorted set is empty or used in pipeline / transaction.
- See Also:
-
zPopMin
Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.Description copied from interface:RedisZSetCommands
Remove and returncount
values with their score having the lowest score from sorted set atkey
.- Specified by:
zPopMin
in interfaceRedisZSetCommands
- Parameters:
key
- must not be null.count
- number of elements to pop.- Returns:
- null when the sorted set is empty or used in pipeline / transaction.
- See Also:
-
bZPopMin
Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.Description copied from interface:RedisZSetCommands
Remove and return the value with its score having the lowest score from sorted set atkey
.
Blocks connection until element available ortimeout
reached.- Specified by:
bZPopMin
in interfaceRedisZSetCommands
- Parameters:
key
- must not be null.unit
- must not be null.- Returns:
- can be null.
- See Also:
-
zPopMax
Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.Description copied from interface:RedisZSetCommands
Remove and return the value with its score having the highest score from sorted set atkey
.- Specified by:
zPopMax
in interfaceRedisZSetCommands
- Parameters:
key
- must not be null.- Returns:
- null when the sorted set is empty or used in pipeline / transaction.
- See Also:
-
zPopMax
Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.Description copied from interface:RedisZSetCommands
Remove and returncount
values with their score having the highest score from sorted set atkey
.- Specified by:
zPopMax
in interfaceRedisZSetCommands
- Parameters:
key
- must not be null.count
- number of elements to pop.- Returns:
- null when the sorted set is empty or used in pipeline / transaction.
- See Also:
-
bZPopMax
Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.Description copied from interface:RedisZSetCommands
Remove and return the value with its score having the highest score from sorted set atkey
.
Blocks connection until element available ortimeout
reached.- Specified by:
bZPopMax
in interfaceRedisZSetCommands
- Parameters:
key
- must not be null.unit
- must not be null.- Returns:
- can be null.
- See Also:
-
zCount
Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.Description copied from interface:RedisZSetCommands
Count number of elements within sorted set with scores betweenRange#min
andRange#max
.- Specified by:
zCount
in interfaceRedisZSetCommands
- Parameters:
key
- must not be null.range
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
zDiff
Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.Description copied from interface:RedisZSetCommands
Diff sortedsets
.- Specified by:
zDiff
in interfaceRedisZSetCommands
- Parameters:
sets
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
zDiffWithScores
Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.Description copied from interface:RedisZSetCommands
Diff sortedsets
.- Specified by:
zDiffWithScores
in interfaceRedisZSetCommands
- Parameters:
sets
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
zDiffStore
Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.Description copied from interface:RedisZSetCommands
Diff sortedsets
and store result in destinationdestKey
.- Specified by:
zDiffStore
in interfaceRedisZSetCommands
- Parameters:
destKey
- must not be null.sets
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
zIncrBy
Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.Description copied from interface:RedisZSetCommands
Increment the score of element withvalue
in sorted set byincrement
.- Specified by:
zIncrBy
in interfaceRedisZSetCommands
- Parameters:
key
- must not be null.value
- the value.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
zInter
Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.Description copied from interface:RedisZSetCommands
Intersect sortedsets
.- Specified by:
zInter
in interfaceRedisZSetCommands
- Parameters:
sets
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
zInterWithScores
Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.Description copied from interface:RedisZSetCommands
Intersect sortedsets
.- Specified by:
zInterWithScores
in interfaceRedisZSetCommands
- Parameters:
aggregate
- must not be null.weights
- must not be null.sets
- must not be null.- Returns:
- See Also:
-
zInterWithScores
@Deprecated default Set<Tuple> zInterWithScores(Aggregate aggregate, Weights weights, byte[]... sets) Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.Description copied from interface:RedisZSetCommands
Intersect sortedsets
.- Specified by:
zInterWithScores
in interfaceRedisZSetCommands
- Parameters:
aggregate
- must not be null.weights
- must not be null.sets
- must not be null.- Returns:
- See Also:
-
zInterWithScores
Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.Description copied from interface:RedisZSetCommands
Intersect sortedsets
.- Specified by:
zInterWithScores
in interfaceRedisZSetCommands
- Parameters:
sets
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
zInterStore
@Deprecated default Long zInterStore(byte[] destKey, Aggregate aggregate, int[] weights, byte[]... sets) Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.Description copied from interface:RedisZSetCommands
Intersect sortedsets
and store result in destinationdestKey
.- Specified by:
zInterStore
in interfaceRedisZSetCommands
- Parameters:
destKey
- must not be null.aggregate
- must not be null.weights
- must not be null.sets
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
zInterStore
@Deprecated default Long zInterStore(byte[] destKey, Aggregate aggregate, Weights weights, byte[]... sets) Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.Description copied from interface:RedisZSetCommands
Intersect sortedsets
and store result in destinationdestKey
.- Specified by:
zInterStore
in interfaceRedisZSetCommands
- Parameters:
destKey
- must not be null.aggregate
- must not be null.weights
- must not be null.sets
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
zInterStore
Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.Description copied from interface:RedisZSetCommands
Intersect sortedsets
and store result in destinationdestKey
.- Specified by:
zInterStore
in interfaceRedisZSetCommands
- Parameters:
destKey
- must not be null.sets
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
zRandMember
Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.Description copied from interface:RedisZSetCommands
Get random element from sorted set atkey
.- Specified by:
zRandMember
in interfaceRedisZSetCommands
- Parameters:
key
- must not be null.- Returns:
- can be null.
- See Also:
-
zRandMember
Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.Description copied from interface:RedisZSetCommands
Getcount
random elements from sorted set atkey
.- Specified by:
zRandMember
in interfaceRedisZSetCommands
- Parameters:
key
- must not be null.count
- if the providedcount
argument is positive, return a list of distinct fields, capped either atcount
or the set size. Ifcount
is negative, the behavior changes and the command is allowed to return the same value multiple times. In this case, the number of returned values is the absolute value of the specified count.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
zRandMemberWithScore
Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.Description copied from interface:RedisZSetCommands
Get random element from sorted set atkey
.- Specified by:
zRandMemberWithScore
in interfaceRedisZSetCommands
- Parameters:
key
- must not be null.- Returns:
- can be null.
- See Also:
-
zRandMemberWithScore
Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.Description copied from interface:RedisZSetCommands
Getcount
random elements from sorted set atkey
.- Specified by:
zRandMemberWithScore
in interfaceRedisZSetCommands
- Parameters:
key
- must not be null.count
- if the providedcount
argument is positive, return a list of distinct fields, capped either atcount
or the set size. Ifcount
is negative, the behavior changes and the command is allowed to return the same value multiple times. In this case, the number of returned values is the absolute value of the specified count.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
zRange
Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.Description copied from interface:RedisZSetCommands
Get elements betweenstart
andend
from sorted set.- Specified by:
zRange
in interfaceRedisZSetCommands
- Parameters:
key
- must not be null.- Returns:
- empty
Set
when key does not exists or no members in range. null when used in pipeline / transaction. - See Also:
-
zRangeWithScores
Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.Description copied from interface:RedisZSetCommands
- Specified by:
zRangeWithScores
in interfaceRedisZSetCommands
- Parameters:
key
- must not be null.- Returns:
- empty
Set
when key does not exists or no members in range. null when used in pipeline / transaction. - See Also:
-
zRangeByLex
Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.Description copied from interface:RedisZSetCommands
Get all the elements inRange
from the sorted set at key in lexicographical ordering. Result is limited viaRedisZSetCommands.Limit
.- Specified by:
zRangeByLex
in interfaceRedisZSetCommands
- Parameters:
key
- must not be null.range
- must not be null.limit
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
zRevRangeByLex
Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.Description copied from interface:RedisZSetCommands
Get all the elements inRange
from the sorted set at key in reversed lexicographical ordering. Result is limited viaRedisZSetCommands.Limit
.- Specified by:
zRevRangeByLex
in interfaceRedisZSetCommands
- Parameters:
key
- must not be null.range
- must not be null.limit
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
zRangeByScore
@Deprecated default Set<byte[]> zRangeByScore(byte[] key, Range<? extends Number> range, Limit limit) Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.Description copied from interface:RedisZSetCommands
Get elements in range fromLimit#count
toLimit#offset
where score is betweenRange#min
andRange#max
from sorted set.- Specified by:
zRangeByScore
in interfaceRedisZSetCommands
- Parameters:
key
- must not be null.range
- must not be null.limit
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
zRangeByScoreWithScores
@Deprecated default Set<Tuple> zRangeByScoreWithScores(byte[] key, Range<? extends Number> range, Limit limit) Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.Description copied from interface:RedisZSetCommands
Get set ofTuple
s in range fromLimit#offset
toLimit#offset + Limit#count
where score is betweenRange#min
andRange#max
from sorted set.- Specified by:
zRangeByScoreWithScores
in interfaceRedisZSetCommands
- Parameters:
key
- must not be null.range
- must not be null.limit
- must not be null.- Returns:
- empty
Set
when key does not exists or no members in range. null when used in pipeline / transaction. - See Also:
-
zRevRangeWithScores
Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.Description copied from interface:RedisZSetCommands
- Specified by:
zRevRangeWithScores
in interfaceRedisZSetCommands
- Parameters:
key
- must not be null.- Returns:
- empty
Set
when key does not exists or no members in range. null when used in pipeline / transaction. - See Also:
-
zRevRangeByScore
@Deprecated default Set<byte[]> zRevRangeByScore(byte[] key, Range<? extends Number> range, Limit limit) Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.Description copied from interface:RedisZSetCommands
Get elements in range fromLimit#offset
toLimit#offset + Limit#count
where score is betweenRange#min
andRange#max
from sorted set ordered high -> low.- Specified by:
zRevRangeByScore
in interfaceRedisZSetCommands
- Parameters:
key
- must not be null.range
- must not be null.limit
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
zRevRangeByScoreWithScores
@Deprecated default Set<Tuple> zRevRangeByScoreWithScores(byte[] key, Range<? extends Number> range, Limit limit) Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.Description copied from interface:RedisZSetCommands
Get set ofTuple
in range fromLimit#offset
toLimit#count
where score is betweenRange#min
andRange#max
from sorted set ordered high -> low.- Specified by:
zRevRangeByScoreWithScores
in interfaceRedisZSetCommands
- Parameters:
key
- must not be null.range
- must not be null.limit
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
zRank
Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.Description copied from interface:RedisZSetCommands
Determine the index of element withvalue
in a sorted set.- Specified by:
zRank
in interfaceRedisZSetCommands
- Parameters:
key
- must not be null.value
- the value. Must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
zRem
Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.Description copied from interface:RedisZSetCommands
Removevalues
from sorted set. Return number of removed elements.- Specified by:
zRem
in interfaceRedisZSetCommands
- Parameters:
key
- must not be null.values
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
zRemRange
Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.Description copied from interface:RedisZSetCommands
Remove elements in range betweenstart
andend
from sorted set withkey
.- Specified by:
zRemRange
in interfaceRedisZSetCommands
- Parameters:
key
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
zRemRangeByLex
Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.Description copied from interface:RedisZSetCommands
Remove all elements between the lexicographicalRange
.- Specified by:
zRemRangeByLex
in interfaceRedisZSetCommands
- Parameters:
key
- must not be null.range
- must not be null.- Returns:
- the number of elements removed, or null when used in pipeline / transaction.
- See Also:
-
zRemRangeByScore
Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.Description copied from interface:RedisZSetCommands
Remove elements with scores betweenRange#min
andRange#max
from sorted set withkey
.- Specified by:
zRemRangeByScore
in interfaceRedisZSetCommands
- Parameters:
key
- must not be null.range
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
zRemRangeByScore
Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.Description copied from interface:RedisZSetCommands
Remove elements with scores betweenmin
andmax
from sorted set withkey
.- Specified by:
zRemRangeByScore
in interfaceRedisZSetCommands
- Parameters:
key
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
zRevRange
Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.Description copied from interface:RedisZSetCommands
Get elements in range fromstart
toend
from sorted set ordered from high to low.- Specified by:
zRevRange
in interfaceRedisZSetCommands
- Parameters:
key
- must not be null.- Returns:
- empty
Set
when key does not exists or no members in range. null when used in pipeline / transaction. - See Also:
-
zRevRank
Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.Description copied from interface:RedisZSetCommands
Determine the index of element withvalue
in a sorted set when scored high to low.- Specified by:
zRevRank
in interfaceRedisZSetCommands
- Parameters:
key
- must not be null.value
- the value.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
zScore
Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.Description copied from interface:RedisZSetCommands
Get the score of element withvalue
from sorted set with keykey
.- Specified by:
zScore
in interfaceRedisZSetCommands
- Parameters:
key
- must not be null.value
- the value.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
zMScore
Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.Description copied from interface:RedisZSetCommands
Get the scores of elements withvalues
from sorted set with keykey
.- Specified by:
zMScore
in interfaceRedisZSetCommands
- Parameters:
key
- must not be null.values
- the values.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
zUnion
Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.Description copied from interface:RedisZSetCommands
Union sortedsets
.- Specified by:
zUnion
in interfaceRedisZSetCommands
- Parameters:
sets
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
zUnionWithScores
Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.Description copied from interface:RedisZSetCommands
Union sortedsets
.- Specified by:
zUnionWithScores
in interfaceRedisZSetCommands
- Parameters:
aggregate
- must not be null.weights
- must not be null.sets
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
zUnionWithScores
@Deprecated default Set<Tuple> zUnionWithScores(Aggregate aggregate, Weights weights, byte[]... sets) Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.Description copied from interface:RedisZSetCommands
Union sortedsets
.- Specified by:
zUnionWithScores
in interfaceRedisZSetCommands
- Parameters:
aggregate
- must not be null.weights
- must not be null.sets
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
zUnionWithScores
Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.Description copied from interface:RedisZSetCommands
Union sortedsets
.- Specified by:
zUnionWithScores
in interfaceRedisZSetCommands
- Parameters:
sets
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
zUnionStore
@Deprecated default Long zUnionStore(byte[] destKey, Aggregate aggregate, int[] weights, byte[]... sets) Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.Description copied from interface:RedisZSetCommands
Union sortedsets
and store result in destinationdestKey
.- Specified by:
zUnionStore
in interfaceRedisZSetCommands
- Parameters:
destKey
- must not be null.aggregate
- must not be null.weights
- must not be null.sets
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
zUnionStore
@Deprecated default Long zUnionStore(byte[] destKey, Aggregate aggregate, Weights weights, byte[]... sets) Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.Description copied from interface:RedisZSetCommands
Union sortedsets
and store result in destinationdestKey
.- Specified by:
zUnionStore
in interfaceRedisZSetCommands
- Parameters:
destKey
- must not be null.aggregate
- must not be null.weights
- must not be null.sets
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
zUnionStore
Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.Description copied from interface:RedisZSetCommands
Union sortedsets
.- Specified by:
zUnionStore
in interfaceRedisZSetCommands
sets
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
zScan
Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.Description copied from interface:RedisZSetCommands
Use aCursor
to iterate over elements in sorted set atkey
.- Specified by:
zScan
in interfaceRedisZSetCommands
- Parameters:
key
- must not be null.options
- must not be null.- Returns:
- See Also:
-
zRangeByScore
Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.Description copied from interface:RedisZSetCommands
Get elements where score is betweenmin
andmax
from sorted set.- Specified by:
zRangeByScore
in interfaceRedisZSetCommands
- Parameters:
key
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
zRangeByScore
@Deprecated default Set<byte[]> zRangeByScore(byte[] key, String min, String max, long offset, long count) Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.Description copied from interface:RedisZSetCommands
Get elements in range fromstart
toend
where score is betweenmin
andmax
from sorted set.- Specified by:
zRangeByScore
in interfaceRedisZSetCommands
- Parameters:
key
- must not be null.min
- must not be null.max
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
hSet
Deprecated.in favor ofRedisCommandsProvider.hashCommands()
}.Description copied from interface:RedisHashCommands
Set thevalue
of a hashfield
.- Specified by:
hSet
in interfaceRedisHashCommands
- Parameters:
key
- must not be null.field
- must not be null.value
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
hSetNX
Deprecated.in favor ofRedisCommandsProvider.hashCommands()
}.Description copied from interface:RedisHashCommands
Set thevalue
of a hashfield
only iffield
does not exist.- Specified by:
hSetNX
in interfaceRedisHashCommands
- Parameters:
key
- must not be null.field
- must not be null.value
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
hDel
Deprecated.in favor ofRedisCommandsProvider.hashCommands()
}.Description copied from interface:RedisHashCommands
Delete given hashfields
.- Specified by:
hDel
in interfaceRedisHashCommands
- Parameters:
key
- must not be null.fields
- must not be empty.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
hExists
Deprecated.in favor ofRedisCommandsProvider.hashCommands()
}.Description copied from interface:RedisHashCommands
Determine if given hashfield
exists.- Specified by:
hExists
in interfaceRedisHashCommands
- Parameters:
key
- must not be null.field
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
hGet
Deprecated.in favor ofRedisCommandsProvider.hashCommands()
}.Description copied from interface:RedisHashCommands
Get value for givenfield
from hash atkey
.- Specified by:
hGet
in interfaceRedisHashCommands
- Parameters:
key
- must not be null.field
- must not be null.- Returns:
- null when key or field do not exists or when used in pipeline / transaction.
- See Also:
-
hGetAll
Deprecated.in favor ofRedisCommandsProvider.hashCommands()
}.Description copied from interface:RedisHashCommands
Get entire hash stored atkey
.- Specified by:
hGetAll
in interfaceRedisHashCommands
- Parameters:
key
- must not be null.- Returns:
- empty
Map
if key does not exist or null when used in pipeline / transaction. - See Also:
-
hIncrBy
Deprecated.in favor ofRedisCommandsProvider.hashCommands()
}.Description copied from interface:RedisHashCommands
Incrementvalue
of a hashfield
by the givendelta
.- Specified by:
hIncrBy
in interfaceRedisHashCommands
- Parameters:
key
- must not be null.field
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
hIncrBy
Deprecated.in favor ofRedisCommandsProvider.hashCommands()
}.Description copied from interface:RedisHashCommands
Incrementvalue
of a hashfield
by the givendelta
.- Specified by:
hIncrBy
in interfaceRedisHashCommands
- Parameters:
key
- must not be null.field
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
hRandField
Deprecated.in favor ofRedisCommandsProvider.hashCommands()
}.Description copied from interface:RedisHashCommands
Return a random field from the hash stored atkey
.- Specified by:
hRandField
in interfaceRedisHashCommands
- Parameters:
key
- must not be null.- Returns:
- null if key does not exist or when used in pipeline / transaction.
- See Also:
-
hRandFieldWithValues
Deprecated.in favor ofRedisCommandsProvider.hashCommands()
}.Description copied from interface:RedisHashCommands
Return a random field from the hash along with its value stored atkey
.- Specified by:
hRandFieldWithValues
in interfaceRedisHashCommands
- Parameters:
key
- must not be null.- Returns:
- null if key does not exist or when used in pipeline / transaction.
- See Also:
-
hRandField
Deprecated.in favor ofRedisCommandsProvider.hashCommands()
}.Description copied from interface:RedisHashCommands
Return a random field from the hash stored atkey
. If the providedcount
argument is positive, return a list of distinct fields, capped either atcount
or the hash size. Ifcount
is negative, the behavior changes and the command is allowed to return the same field multiple times. In this case, the number of returned fields is the absolute value of the specified count.- Specified by:
hRandField
in interfaceRedisHashCommands
- Parameters:
key
- must not be null.count
- number of fields to return.- Returns:
- null if key does not exist or when used in pipeline / transaction.
- See Also:
-
hRandFieldWithValues
Deprecated.in favor ofRedisCommandsProvider.hashCommands()
}.Description copied from interface:RedisHashCommands
Return a random field from the hash along with its value stored atkey
. If the providedcount
argument is positive, return a list of distinct fields, capped either atcount
or the hash size. Ifcount
is negative, the behavior changes and the command is allowed to return the same field multiple times. In this case, the number of returned fields is the absolute value of the specified count.- Specified by:
hRandFieldWithValues
in interfaceRedisHashCommands
- Parameters:
key
- must not be null.count
- number of fields to return.- Returns:
- null if key does not exist or when used in pipeline / transaction.
- See Also:
-
hKeys
Deprecated.in favor ofRedisCommandsProvider.hashCommands()
}.Description copied from interface:RedisHashCommands
Get key set (fields) of hash atkey
.- Specified by:
hKeys
in interfaceRedisHashCommands
- Parameters:
key
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
hLen
Deprecated.Description copied from interface:RedisHashCommands
Get size of hash atkey
.- Specified by:
hLen
in interfaceRedisHashCommands
- Parameters:
key
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
hMGet
Deprecated.in favor ofRedisCommandsProvider.hashCommands()
}.Description copied from interface:RedisHashCommands
Get values for givenfields
from hash atkey
. Values are in the order of the requested keys Absent field values are represented using null in the resultingList
.- Specified by:
hMGet
in interfaceRedisHashCommands
- Parameters:
key
- must not be null.fields
- must not be empty.- Returns:
- empty
List
if key does not exist. null when used in pipeline / transaction. - See Also:
-
hMSet
Deprecated.in favor ofRedisCommandsProvider.hashCommands()
}.Description copied from interface:RedisHashCommands
Set multiple hash fields to multiple values using data provided inhashes
- Specified by:
hMSet
in interfaceRedisHashCommands
- Parameters:
key
- must not be null.hashes
- must not be null.- See Also:
-
hVals
Deprecated.in favor ofRedisCommandsProvider.hashCommands()
}.Description copied from interface:RedisHashCommands
Get entry set (values) of hash atfield
.- Specified by:
hVals
in interfaceRedisHashCommands
- Parameters:
key
- must not be null.- Returns:
- empty
List
if key does not exist. null when used in pipeline / transaction. - See Also:
-
hScan
Deprecated.in favor ofRedisCommandsProvider.hashCommands()
}.Description copied from interface:RedisHashCommands
Use aCursor
to iterate over entries in hash atkey
.- Specified by:
hScan
in interfaceRedisHashCommands
- Parameters:
key
- must not be null.options
- must not be null.- Returns:
- See Also:
-
hStrLen
Deprecated.in favor ofRedisCommandsProvider.hashCommands()
.Description copied from interface:RedisHashCommands
Returns the length of the value associated withfield
in the hash stored atkey
. If thekey
or thefield
do not exist,0
is returned.- Specified by:
hStrLen
in interfaceRedisHashCommands
- Parameters:
key
- must not be null.field
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
geoAdd
Deprecated.in favor ofRedisCommandsProvider.geoCommands()
}.Description copied from interface:RedisGeoCommands
AddPoint
with given member name to key.- Specified by:
geoAdd
in interfaceRedisGeoCommands
- Parameters:
key
- must not be null.point
- must not be null.member
- must not be null.- Returns:
- Number of elements added. null when used in pipeline / transaction.
- See Also:
-
geoAdd
Deprecated.in favor ofRedisCommandsProvider.geoCommands()
}.Description copied from interface:RedisGeoCommands
- Specified by:
geoAdd
in interfaceRedisGeoCommands
- Parameters:
key
- must not be null.memberCoordinateMap
- must not be null.- Returns:
- Number of elements added. null when used in pipeline / transaction.
- See Also:
-
geoAdd
@Deprecated default Long geoAdd(byte[] key, Iterable<RedisGeoCommands.GeoLocation<byte[]>> locations) Deprecated.in favor ofRedisCommandsProvider.geoCommands()
}.Description copied from interface:RedisGeoCommands
AddRedisGeoCommands.GeoLocation
s to key- Specified by:
geoAdd
in interfaceRedisGeoCommands
- Parameters:
key
- must not be null.locations
- must not be null.- Returns:
- Number of elements added. null when used in pipeline / transaction.
- See Also:
-
geoDist
Deprecated.in favor ofRedisCommandsProvider.geoCommands()
}.Description copied from interface:RedisGeoCommands
Get theDistance
between member1 and member2.- Specified by:
geoDist
in interfaceRedisGeoCommands
- Parameters:
key
- must not be null.member1
- must not be null.member2
- must not be null.- Returns:
- can be null. null when used in pipeline / transaction.
- See Also:
-
geoDist
Deprecated.in favor ofRedisCommandsProvider.geoCommands()
}.Description copied from interface:RedisGeoCommands
- Specified by:
geoDist
in interfaceRedisGeoCommands
- Parameters:
key
- must not be null.member1
- must not be null.member2
- must not be null.metric
- must not be null.- Returns:
- can be null. null when used in pipeline / transaction.
- See Also:
-
geoHash
Deprecated.in favor ofRedisCommandsProvider.geoCommands()
}.Description copied from interface:RedisGeoCommands
Get Geohash representation of the position for one or more members.- Specified by:
geoHash
in interfaceRedisGeoCommands
- Parameters:
key
- must not be null.members
- must not be null.- Returns:
- empty list when key or members do not exists. null when used in pipeline / transaction.
- See Also:
-
geoPos
Deprecated.in favor ofRedisCommandsProvider.geoCommands()
}.Description copied from interface:RedisGeoCommands
Get thePoint
representation of positions for one or more members.- Specified by:
geoPos
in interfaceRedisGeoCommands
- Parameters:
key
- must not be null.members
- must not be null.- Returns:
- empty
List
when key of members do not exist. null when used in pipeline / transaction. - See Also:
-
geoRadius
@Deprecated default GeoResults<RedisGeoCommands.GeoLocation<byte[]>> geoRadius(byte[] key, Circle within) Deprecated.in favor ofRedisCommandsProvider.geoCommands()
}.Description copied from interface:RedisGeoCommands
Get the members within the boundaries of a givenCircle
.- Specified by:
geoRadius
in interfaceRedisGeoCommands
- Parameters:
key
- must not be null.within
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
geoRadius
@Deprecated default GeoResults<RedisGeoCommands.GeoLocation<byte[]>> geoRadius(byte[] key, Circle within, RedisGeoCommands.GeoRadiusCommandArgs args) Deprecated.in favor ofRedisCommandsProvider.geoCommands()
}.Description copied from interface:RedisGeoCommands
Get the members within the boundaries of a givenCircle
applyingRedisGeoCommands.GeoRadiusCommandArgs
.- Specified by:
geoRadius
in interfaceRedisGeoCommands
- Parameters:
key
- must not be null.within
- must not be null.args
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
geoRadiusByMember
@Deprecated default GeoResults<RedisGeoCommands.GeoLocation<byte[]>> geoRadiusByMember(byte[] key, byte[] member, Distance radius) Deprecated.in favor ofRedisCommandsProvider.geoCommands()
}.Description copied from interface:RedisGeoCommands
Get the members within the circle defined by the members coordinates and givenDistance
.- Specified by:
geoRadiusByMember
in interfaceRedisGeoCommands
- Parameters:
key
- must not be null.member
- must not be null.radius
- must not be null.- Returns:
- null when used in pipeline / transaction..
- See Also:
-
geoRadiusByMember
@Deprecated default GeoResults<RedisGeoCommands.GeoLocation<byte[]>> geoRadiusByMember(byte[] key, byte[] member, Distance radius, RedisGeoCommands.GeoRadiusCommandArgs args) Deprecated.in favor ofRedisCommandsProvider.geoCommands()
}.Description copied from interface:RedisGeoCommands
Get the members within the circle defined by the members coordinates, givenDistance
andRedisGeoCommands.GeoRadiusCommandArgs
.- Specified by:
geoRadiusByMember
in interfaceRedisGeoCommands
- Parameters:
key
- must not be null.member
- must not be null.radius
- must not be null.args
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
geoRemove
Deprecated.in favor ofRedisCommandsProvider.geoCommands()
}.Description copied from interface:RedisGeoCommands
Remove the members.- Specified by:
geoRemove
in interfaceRedisGeoCommands
- Parameters:
key
- must not be null.members
- must not be null.- Returns:
- Number of elements removed. null when used in pipeline / transaction.
- See Also:
-
geoSearch
@Deprecated default GeoResults<RedisGeoCommands.GeoLocation<byte[]>> geoSearch(byte[] key, GeoReference<byte[]> reference, GeoShape predicate, RedisGeoCommands.GeoSearchCommandArgs args) Deprecated.in favor ofRedisCommandsProvider.geoCommands()
}.Description copied from interface:RedisGeoCommands
Return the members of a geo set which are within the borders of the area specified by a givenshape
. The query's center point is provided byGeoReference
.- Specified by:
geoSearch
in interfaceRedisGeoCommands
- Parameters:
key
- must not be null.reference
- must not be null.predicate
- must not be null.args
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
geoSearchStore
@Deprecated default Long geoSearchStore(byte[] destKey, byte[] key, GeoReference<byte[]> reference, GeoShape predicate, RedisGeoCommands.GeoSearchStoreCommandArgs args) Deprecated.in favor ofRedisCommandsProvider.geoCommands()
}.Description copied from interface:RedisGeoCommands
Query the members of a geo set which are within the borders of the area specified by a givenshape
and store the result atdestKey
. The query's center point is provided byGeoReference
.- Specified by:
geoSearchStore
in interfaceRedisGeoCommands
key
- must not be null.reference
- must not be null.predicate
- must not be null.args
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
pfAdd
Deprecated.in favor ofRedisCommandsProvider.hyperLogLogCommands()
.Description copied from interface:RedisHyperLogLogCommands
Adds given values to the HyperLogLog stored at given key.- Specified by:
pfAdd
in interfaceRedisHyperLogLogCommands
- Parameters:
key
- must not be null.values
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
pfCount
Deprecated.in favor ofRedisCommandsProvider.hyperLogLogCommands()
.Description copied from interface:RedisHyperLogLogCommands
Return the approximated cardinality of the structures observed by the HyperLogLog at key(s).- Specified by:
pfCount
in interfaceRedisHyperLogLogCommands
- Parameters:
keys
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
pfMerge
Deprecated.in favor ofRedisCommandsProvider.hyperLogLogCommands()
.Description copied from interface:RedisHyperLogLogCommands
Merge N different HyperLogLogs at sourceKeys into a single destinationKey.- Specified by:
pfMerge
in interfaceRedisHyperLogLogCommands
- Parameters:
destinationKey
- must not be null.sourceKeys
- must not be null.- See Also:
-
bgReWriteAof
Deprecated.in favor ofRedisCommandsProvider.serverCommands()
.Description copied from interface:RedisServerCommands
Start an Append Only File rewrite process on server.- Specified by:
bgReWriteAof
in interfaceRedisServerCommands
- See Also:
-
bgSave
Deprecated.in favor ofRedisCommandsProvider.serverCommands()
.Description copied from interface:RedisServerCommands
Start background saving of db on server.- Specified by:
bgSave
in interfaceRedisServerCommands
- See Also:
-
lastSave
Deprecated.in favor ofRedisCommandsProvider.serverCommands()
.Description copied from interface:RedisServerCommands
Get time of lastRedisServerCommands.bgSave()
operation in seconds.- Specified by:
lastSave
in interfaceRedisServerCommands
- Returns:
- null when used in pipeline / transaction.
- See Also:
-
save
Deprecated.in favor ofRedisCommandsProvider.serverCommands()
.Description copied from interface:RedisServerCommands
Synchronous save current db snapshot on server.- Specified by:
save
in interfaceRedisServerCommands
- See Also:
-
dbSize
Deprecated.in favor ofRedisCommandsProvider.serverCommands()
.Description copied from interface:RedisServerCommands
Get the total number of available keys in currently selected database.- Specified by:
dbSize
in interfaceRedisServerCommands
- Returns:
- null when used in pipeline / transaction.
- See Also:
-
flushDb
Deprecated.in favor ofRedisCommandsProvider.serverCommands()
.Description copied from interface:RedisServerCommands
Delete all keys of the currently selected database.- Specified by:
flushDb
in interfaceRedisServerCommands
- See Also:
-
flushDb
Deprecated.in favor ofRedisCommandsProvider.serverCommands()
.Description copied from interface:RedisServerCommands
Delete all keys of the currently selected database using the specifiedRedisServerCommands.FlushOption
.- Specified by:
flushDb
in interfaceRedisServerCommands
- See Also:
-
flushAll
Deprecated.in favor ofRedisCommandsProvider.serverCommands()
.Description copied from interface:RedisServerCommands
Delete all all keys from all databases.- Specified by:
flushAll
in interfaceRedisServerCommands
- See Also:
-
flushAll
Deprecated.in favor ofRedisCommandsProvider.serverCommands()
.Description copied from interface:RedisServerCommands
Delete all all keys from all databases using the specifiedRedisServerCommands.FlushOption
.- Specified by:
flushAll
in interfaceRedisServerCommands
- See Also:
-
info
Deprecated.in favor ofRedisCommandsProvider.serverCommands()
.Description copied from interface:RedisServerCommands
Load default server information like- memory
- cpu utilization
- replication
- Specified by:
info
in interfaceRedisServerCommands
- Returns:
- null when used in pipeline / transaction.
- See Also:
-
info
Deprecated.in favor ofRedisCommandsProvider.serverCommands()
.Description copied from interface:RedisServerCommands
Load server information for givenselection
.- Specified by:
info
in interfaceRedisServerCommands
- Returns:
- null when used in pipeline / transaction.
- See Also:
-
shutdown
Deprecated.in favor ofRedisCommandsProvider.serverCommands()
.Description copied from interface:RedisServerCommands
Shutdown server.- Specified by:
shutdown
in interfaceRedisServerCommands
- See Also:
-
shutdown
Deprecated.in favor ofRedisCommandsProvider.serverCommands()
.Description copied from interface:RedisServerCommands
Shutdown server.- Specified by:
shutdown
in interfaceRedisServerCommands
- See Also:
-
getConfig
Deprecated.in favor ofRedisCommandsProvider.serverCommands()
.Description copied from interface:RedisServerCommands
Load configuration parameters for givenpattern
from server.- Specified by:
getConfig
in interfaceRedisServerCommands
- Parameters:
pattern
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
setConfig
Deprecated.in favor ofRedisCommandsProvider.serverCommands()
.Description copied from interface:RedisServerCommands
Set server configuration forparam
tovalue
.- Specified by:
setConfig
in interfaceRedisServerCommands
- Parameters:
param
- must not be null.value
- must not be null.- See Also:
-
resetConfigStats
Deprecated.in favor ofRedisCommandsProvider.serverCommands()
.Description copied from interface:RedisServerCommands
Reset statistic counters on server.
Counters can be retrieved usingRedisServerCommands.info()
.- Specified by:
resetConfigStats
in interfaceRedisServerCommands
- See Also:
-
rewriteConfig
Deprecated.in favor ofRedisCommandsProvider.serverCommands()
.Description copied from interface:RedisServerCommands
Rewrites theredis.conf
file.- Specified by:
rewriteConfig
in interfaceRedisServerCommands
- See Also:
-
time
Deprecated.in favor ofRedisCommandsProvider.serverCommands()
.Description copied from interface:RedisServerCommands
Request server timestamp usingTIME
command inTimeUnit.MILLISECONDS
.- Specified by:
time
in interfaceRedisServerCommands
- Returns:
- current server time in milliseconds or null when used in pipeline / transaction.
- See Also:
-
time
Deprecated.in favor ofRedisCommandsProvider.serverCommands()
.Description copied from interface:RedisServerCommands
Request server timestamp usingTIME
command.- Specified by:
time
in interfaceRedisServerCommands
- Parameters:
timeUnit
- target unit.- Returns:
- current server time in
TimeUnit
or null when used in pipeline / transaction. - See Also:
-
killClient
Deprecated.in favor ofRedisCommandsProvider.serverCommands()
.Description copied from interface:RedisServerCommands
Closes a given client connection identified by host:port.- Specified by:
killClient
in interfaceRedisServerCommands
- Parameters:
host
- of connection to close.port
- of connection to close- See Also:
-
setClientName
Deprecated.in favor ofRedisCommandsProvider.serverCommands()
.Description copied from interface:RedisServerCommands
Assign given name to current connection.- Specified by:
setClientName
in interfaceRedisServerCommands
- See Also:
-
getClientName
Deprecated.in favor ofRedisCommandsProvider.serverCommands()
.Description copied from interface:RedisServerCommands
Returns the name of the current connection.- Specified by:
getClientName
in interfaceRedisServerCommands
- Returns:
- null when used in pipeline / transaction.
- See Also:
-
getClientList
Deprecated.in favor ofRedisCommandsProvider.serverCommands()
.Description copied from interface:RedisServerCommands
Request information and statistics about connected clients.- Specified by:
getClientList
in interfaceRedisServerCommands
- Returns:
List
ofRedisClientInfo
objects or null when used in pipeline / transaction.- See Also:
-
replicaOf
Deprecated.in favor ofRedisCommandsProvider.serverCommands()
.Description copied from interface:RedisServerCommands
Change redis replication setting to new master.- Specified by:
replicaOf
in interfaceRedisServerCommands
- Parameters:
host
- must not be null.- See Also:
-
replicaOfNoOne
Deprecated.in favor ofRedisCommandsProvider.serverCommands()
.Description copied from interface:RedisServerCommands
Change server into master.- Specified by:
replicaOfNoOne
in interfaceRedisServerCommands
- See Also:
-
migrate
@Deprecated default void migrate(byte[] key, RedisNode target, int dbIndex, @Nullable RedisServerCommands.MigrateOption option) Deprecated.in favor ofRedisCommandsProvider.serverCommands()
.Description copied from interface:RedisServerCommands
Atomically transfer a key from a source Redis instance to a destination Redis instance. On success the key is deleted from the original instance and is guaranteed to exist in the target instance.- Specified by:
migrate
in interfaceRedisServerCommands
- Parameters:
key
- must not be null.target
- must not be null.option
- can be null. Defaulted toRedisServerCommands.MigrateOption.COPY
.- See Also:
-
migrate
@Deprecated default void migrate(byte[] key, RedisNode target, int dbIndex, @Nullable RedisServerCommands.MigrateOption option, long timeout) Deprecated.in favor ofRedisCommandsProvider.serverCommands()
.Description copied from interface:RedisServerCommands
Atomically transfer a key from a source Redis instance to a destination Redis instance. On success the key is deleted from the original instance and is guaranteed to exist in the target instance.- Specified by:
migrate
in interfaceRedisServerCommands
- Parameters:
key
- must not be null.target
- must not be null.option
- can be null. Defaulted toRedisServerCommands.MigrateOption.COPY
.- See Also:
-
scriptFlush
Deprecated.in favor ofRedisCommandsProvider.scriptingCommands()
.Description copied from interface:RedisScriptingCommands
Flush lua script cache.- Specified by:
scriptFlush
in interfaceRedisScriptingCommands
- See Also:
-
scriptKill
Deprecated.in favor ofRedisCommandsProvider.scriptingCommands()
.Description copied from interface:RedisScriptingCommands
Kill current lua script execution.- Specified by:
scriptKill
in interfaceRedisScriptingCommands
- See Also:
-
scriptLoad
Deprecated.in favor ofRedisCommandsProvider.scriptingCommands()
.Description copied from interface:RedisScriptingCommands
Load lua script into scripts cache, without executing it.
Execute the script by callingRedisScriptingCommands.evalSha(byte[], ReturnType, int, byte[]...)
.- Specified by:
scriptLoad
in interfaceRedisScriptingCommands
- Parameters:
script
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
scriptExists
Deprecated.in favor ofRedisCommandsProvider.scriptingCommands()
.Description copied from interface:RedisScriptingCommands
Check if givenscriptShas
exist in script cache.- Specified by:
scriptExists
in interfaceRedisScriptingCommands
- Returns:
- one entry per given scriptSha in returned
List
or null when used in pipeline / transaction. - See Also:
-
eval
@Deprecated default <T> T eval(byte[] script, ReturnType returnType, int numKeys, byte[]... keysAndArgs) Deprecated.in favor ofRedisCommandsProvider.scriptingCommands()
.Description copied from interface:RedisScriptingCommands
Evaluate givenscript
.- Specified by:
eval
in interfaceRedisScriptingCommands
- Parameters:
script
- must not be null.returnType
- must not be null.keysAndArgs
- must not be null.- Returns:
- script result. null when used in pipeline / transaction.
- See Also:
-
evalSha
@Deprecated default <T> T evalSha(String scriptSha, ReturnType returnType, int numKeys, byte[]... keysAndArgs) Deprecated.in favor ofRedisCommandsProvider.scriptingCommands()
.Description copied from interface:RedisScriptingCommands
Evaluate givenscriptSha
.- Specified by:
evalSha
in interfaceRedisScriptingCommands
- Parameters:
scriptSha
- must not be null.returnType
- must not be null.keysAndArgs
- must not be null.- Returns:
- script result. null when used in pipeline / transaction.
- See Also:
-
evalSha
@Deprecated default <T> T evalSha(byte[] scriptSha, ReturnType returnType, int numKeys, byte[]... keysAndArgs) Deprecated.in favor ofRedisCommandsProvider.scriptingCommands()
.Description copied from interface:RedisScriptingCommands
Evaluate givenscriptSha
.- Specified by:
evalSha
in interfaceRedisScriptingCommands
- Parameters:
scriptSha
- must not be null.returnType
- must not be null.keysAndArgs
- must not be null.- Returns:
- script result. null when used in pipeline / transaction.
- See Also:
-
zRangeStoreByLex
@Deprecated default Long zRangeStoreByLex(byte[] dstKey, byte[] srcKey, Range<byte[]> range, Limit limit) Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.Description copied from interface:RedisZSetCommands
This command is like ZRANGE , but stores the result in the dstKey destination key.- Specified by:
zRangeStoreByLex
in interfaceRedisZSetCommands
- Parameters:
dstKey
- must not be null.srcKey
- must not be null.range
- must not be null.limit
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
zRangeStoreRevByLex
@Deprecated default Long zRangeStoreRevByLex(byte[] dstKey, byte[] srcKey, Range<byte[]> range, Limit limit) Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.Description copied from interface:RedisZSetCommands
This command is like ZRANGE … REV , but stores the result in the dstKey destination key.- Specified by:
zRangeStoreRevByLex
in interfaceRedisZSetCommands
- Parameters:
dstKey
- must not be null.srcKey
- must not be null.range
- must not be null.limit
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
zRangeStoreByScore
@Deprecated default Long zRangeStoreByScore(byte[] dstKey, byte[] srcKey, Range<? extends Number> range, Limit limit) Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.Description copied from interface:RedisZSetCommands
This command is like ZRANGE, but stores the result in the dstKey destination key.- Specified by:
zRangeStoreByScore
in interfaceRedisZSetCommands
- Parameters:
dstKey
- must not be null.srcKey
- must not be null.range
- must not be null.limit
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
zRangeStoreRevByScore
@Deprecated default Long zRangeStoreRevByScore(byte[] dstKey, byte[] srcKey, Range<? extends Number> range, Limit limit) Deprecated.in favor ofRedisCommandsProvider.zSetCommands()
}.Description copied from interface:RedisZSetCommands
This command is like ZRANGE … REV, but stores the result in the dstKey destination key.- Specified by:
zRangeStoreRevByScore
in interfaceRedisZSetCommands
- Parameters:
dstKey
- must not be null.srcKey
- must not be null.range
- must not be null.limit
- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
RedisCommandsProvider.stringCommands()
}.