public interface IRedisCommands<K,V> extends IValueCommands<K,V>, IHashCommands<K,V>, IListCommands<K,V>, ISetCommands<K,V>, IZSetCommands<K,V>, IGeoCommands<K,V>, IHyperLogLogCommands<K,V>, IRedisTransactionsCommands<K,V>
| Modifier and Type | Method and Description |
|---|---|
<T> T |
execute(SessionCallbackX<T> session)
Executes a Redis session.
|
List<Object> |
executePipelined(SessionCallbackX<?> session)
Executes the given Redis session on a pipelined connection.
|
List<Object> |
executePipelined(SessionCallbackX session,
org.springframework.data.redis.serializer.RedisSerializer<?> resultSerializer)
Executes the given Redis session on a pipelined connection, returning the results using a dedicated serializer.
|
Boolean |
move(K key,
int dbIndex)
Move given
key to database with index. |
List<V> |
sort(org.springframework.data.redis.core.query.SortQuery<K> query)
Sort the elements for
query. |
<T,S> List<T> |
sort(org.springframework.data.redis.core.query.SortQuery<K> query,
org.springframework.data.redis.core.BulkMapper<T,S> bulkMapper,
org.springframework.data.redis.serializer.RedisSerializer<S> resultSerializer)
Sort the elements for
query applying BulkMapper and RedisSerializer. |
<T> List<T> |
sort(org.springframework.data.redis.core.query.SortQuery<K> query,
org.springframework.data.redis.core.BulkMapper<T,V> bulkMapper)
Sort the elements for
query applying BulkMapper. |
Long |
sort(org.springframework.data.redis.core.query.SortQuery<K> query,
K storeKey)
Sort the elements for
query and store result in storeKey. |
<T> List<T> |
sort(org.springframework.data.redis.core.query.SortQuery<K> query,
org.springframework.data.redis.serializer.RedisSerializer<T> resultSerializer)
Sort the elements for
query applying RedisSerializer. |
Long |
unlink(Collection<K> keys)
Unlink the
keys from the keyspace. |
Boolean |
unlink(K key)
Unlink the
key from the keyspace. |
append, bitField, countExistingKeys, decr, decrBy, del, del, exists, expire, expireAt, get, getBit, getRange, getSet, incr, incrBy, mGet, mSet, mSet, persist, pExpire, rename, set, setBit, setEx, setEx, setNx, setNx, setNx, setRange, setXx, setXx, setXx, strLen, ttl, typehDel, hExists, hGet, hGetAll, hKeys, hLen, hMget, hmset, hSet, hValsblPop, brPop, brPoplPush, lIndex, lLen, lPop, lPush, lPush, lPush, lPushx, lRange, lRem, lSet, ltrim, rPop, rPoplPush, rPush, rPush, rPush, rPushxsAdd, sCard, sDiff, sDiff, sDiffStore, sDiffStore, sInter, sInter, sInterStore, sInterstore, sIsMember, sMembers, sPop, sRandMember, sRandMember, sRem, sUnion, sUnion, sUnionStore, sUnionStorezAdd, zAdd, zCard, zCount, zIncrby, zInterStore, zInterStore, zInterStore, zInterStore, zRange, zRangeByLex, zRangeByLex, zRangeByScore, zRangeByScore, zRank, zRem, zRemRangeByRank, zRemRangeByScore, zRevRange, zRevRange, zRevRangeByScore, zRevRank, zScan, zScore, zUnionStore, zUnionStore, zUnionStore, zUnionStoregeoAdd, geoAdd, geoAdd, geoAdd, geoDist, geoDist, geoHash, geoPos, geoRadius, geoRadius, geoRadiusByMember, geoRadiusByMember, geoRadiusByMember, geoRemovepfAdd, pfCount, pfMerge@Nullable Boolean unlink(K key)
key from the keyspace. Unlike with IValueCommands.del(Object) the actual memory reclaiming here
happens asynchronously.key - must not be null.@Nullable Long unlink(Collection<K> keys)
keys from the keyspace. Unlike with IValueCommands.del(Collection) the actual memory reclaiming
here happens asynchronously.keys - must not be null.@Nullable Boolean move(K key, int dbIndex)
key to database with index.key - must not be null.dbIndex - @Nullable List<V> sort(org.springframework.data.redis.core.query.SortQuery<K> query)
query.query - must not be null.@Nullable <T> List<T> sort(org.springframework.data.redis.core.query.SortQuery<K> query, org.springframework.data.redis.serializer.RedisSerializer<T> resultSerializer)
query applying RedisSerializer.query - must not be null.@Nullable <T> List<T> sort(org.springframework.data.redis.core.query.SortQuery<K> query, org.springframework.data.redis.core.BulkMapper<T,V> bulkMapper)
query applying BulkMapper.query - must not be null.@Nullable <T,S> List<T> sort(org.springframework.data.redis.core.query.SortQuery<K> query, org.springframework.data.redis.core.BulkMapper<T,S> bulkMapper, org.springframework.data.redis.serializer.RedisSerializer<S> resultSerializer)
query applying BulkMapper and RedisSerializer.query - must not be null.@Nullable Long sort(org.springframework.data.redis.core.query.SortQuery<K> query, K storeKey)
query and store result in storeKey.query - must not be null.storeKey - must not be null.@Nullable <T> T execute(SessionCallbackX<T> session)
IRedisTransactionsCommands.multi() and IRedisTransactionsCommands.watch(Collection) operations.T - return typesession - session callback. Must not be null.List<Object> executePipelined(SessionCallbackX<?> session)
session - Session callbackList<Object> executePipelined(SessionCallbackX session, org.springframework.data.redis.serializer.RedisSerializer<?> resultSerializer)
session - Session callbackresultSerializer - Copyright © 2021. All rights reserved.