Package | Description |
---|---|
org.springframework.data.redis.connection |
Connection package providing low-level abstractions for interacting with the various Redis 'drivers'/libraries.
|
Modifier and Type | Class and Description |
---|---|
class |
DefaultStringTuple
Default implementation for
StringRedisConnection.StringTuple interface. |
Modifier and Type | Method and Description |
---|---|
StringRedisConnection.StringTuple |
StringRedisConnection.bZPopMax(String key,
long timeout,
TimeUnit unit)
Remove and return the value with its score having the highest score from sorted set at
key . |
StringRedisConnection.StringTuple |
DefaultStringRedisConnection.bZPopMax(String key,
long timeout,
TimeUnit unit) |
StringRedisConnection.StringTuple |
StringRedisConnection.bZPopMin(String key,
long timeout,
TimeUnit unit)
Remove and return the value with its score having the lowest score from sorted set at
key . |
StringRedisConnection.StringTuple |
DefaultStringRedisConnection.bZPopMin(String key,
long timeout,
TimeUnit unit) |
StringRedisConnection.StringTuple |
StringRedisConnection.zPopMax(String key)
Remove and return the value with its score having the highest score from sorted set at
key . |
StringRedisConnection.StringTuple |
DefaultStringRedisConnection.zPopMax(String key) |
StringRedisConnection.StringTuple |
DefaultStringRedisConnection.zPopMin(String key) |
StringRedisConnection.StringTuple |
StringRedisConnection.zRandMemberWithScore(String key)
Get random element from sorted set at
key . |
StringRedisConnection.StringTuple |
DefaultStringRedisConnection.zRandMemberWithScore(String key) |
Modifier and Type | Method and Description |
---|---|
Set<StringRedisConnection.StringTuple> |
StringRedisConnection.zDiffWithScores(String... sets)
Diff sorted
sets . |
Set<StringRedisConnection.StringTuple> |
DefaultStringRedisConnection.zDiffWithScores(String... sets) |
default Set<StringRedisConnection.StringTuple> |
StringRedisConnection.zInterWithScores(RedisZSetCommands.Aggregate aggregate,
int[] weights,
String... sets)
Intersect sorted
sets . |
Set<StringRedisConnection.StringTuple> |
StringRedisConnection.zInterWithScores(RedisZSetCommands.Aggregate aggregate,
RedisZSetCommands.Weights weights,
String... sets)
Intersect sorted
sets . |
Set<StringRedisConnection.StringTuple> |
DefaultStringRedisConnection.zInterWithScores(RedisZSetCommands.Aggregate aggregate,
RedisZSetCommands.Weights weights,
String... sets) |
Set<StringRedisConnection.StringTuple> |
StringRedisConnection.zInterWithScores(String... sets)
Intersect sorted
sets . |
Set<StringRedisConnection.StringTuple> |
DefaultStringRedisConnection.zInterWithScores(String... sets) |
Set<StringRedisConnection.StringTuple> |
StringRedisConnection.zPopMax(String key,
long count)
Remove and return
count values with their score having the highest score from sorted set at key . |
Set<StringRedisConnection.StringTuple> |
DefaultStringRedisConnection.zPopMax(String key,
long count) |
Set<StringRedisConnection.StringTuple> |
StringRedisConnection.zPopMin(String key,
long count)
Remove and return
count values with their score having the lowest score from sorted set at key . |
Set<StringRedisConnection.StringTuple> |
DefaultStringRedisConnection.zPopMin(String key,
long count) |
List<StringRedisConnection.StringTuple> |
StringRedisConnection.zRandMemberWithScores(String key,
long count)
Get
count random elements from sorted set at key . |
List<StringRedisConnection.StringTuple> |
DefaultStringRedisConnection.zRandMemberWithScores(String key,
long count) |
Set<StringRedisConnection.StringTuple> |
StringRedisConnection.zRangeByScoreWithScores(String key,
double min,
double max)
Get set of
Tuple s where score is between min and max from sorted set. |
Set<StringRedisConnection.StringTuple> |
DefaultStringRedisConnection.zRangeByScoreWithScores(String key,
double min,
double max) |
Set<StringRedisConnection.StringTuple> |
StringRedisConnection.zRangeByScoreWithScores(String key,
double min,
double max,
long offset,
long count)
Get set of
Tuple s in range from start to end where score is between min and
max from sorted set. |
Set<StringRedisConnection.StringTuple> |
DefaultStringRedisConnection.zRangeByScoreWithScores(String key,
double min,
double max,
long offset,
long count) |
Set<StringRedisConnection.StringTuple> |
StringRedisConnection.zRangeWithScores(String key,
long start,
long end)
Get set of
Tuple s between start and end from sorted set. |
Set<StringRedisConnection.StringTuple> |
DefaultStringRedisConnection.zRangeWithScores(String key,
long start,
long end) |
Set<StringRedisConnection.StringTuple> |
StringRedisConnection.zRevRangeByScoreWithScores(String key,
double min,
double max)
Get set of
Tuple where score is between min and max from sorted set ordered from high to
low. |
Set<StringRedisConnection.StringTuple> |
DefaultStringRedisConnection.zRevRangeByScoreWithScores(String key,
double min,
double max) |
Set<StringRedisConnection.StringTuple> |
StringRedisConnection.zRevRangeByScoreWithScores(String key,
double min,
double max,
long offset,
long count)
Get set of
Tuple in range from start to end where score is between min and
max from sorted set ordered high -> low. |
Set<StringRedisConnection.StringTuple> |
DefaultStringRedisConnection.zRevRangeByScoreWithScores(String key,
double min,
double max,
long offset,
long count) |
Set<StringRedisConnection.StringTuple> |
StringRedisConnection.zRevRangeWithScores(String key,
long start,
long end)
Get set of
Tuple s in range from start to end from sorted set ordered from high to low. |
Set<StringRedisConnection.StringTuple> |
DefaultStringRedisConnection.zRevRangeWithScores(String key,
long start,
long end) |
Cursor<StringRedisConnection.StringTuple> |
StringRedisConnection.zScan(String key,
ScanOptions options)
Use a
Cursor to iterate over elements in sorted set at key . |
Cursor<StringRedisConnection.StringTuple> |
DefaultStringRedisConnection.zScan(String key,
ScanOptions options) |
default Set<StringRedisConnection.StringTuple> |
StringRedisConnection.zUnionWithScores(RedisZSetCommands.Aggregate aggregate,
int[] weights,
String... sets)
Union sorted
sets . |
Set<StringRedisConnection.StringTuple> |
StringRedisConnection.zUnionWithScores(RedisZSetCommands.Aggregate aggregate,
RedisZSetCommands.Weights weights,
String... sets)
Union sorted
sets . |
Set<StringRedisConnection.StringTuple> |
DefaultStringRedisConnection.zUnionWithScores(RedisZSetCommands.Aggregate aggregate,
RedisZSetCommands.Weights weights,
String... sets) |
Set<StringRedisConnection.StringTuple> |
StringRedisConnection.zUnionWithScores(String... sets)
Union sorted
sets . |
Set<StringRedisConnection.StringTuple> |
DefaultStringRedisConnection.zUnionWithScores(String... sets) |
Modifier and Type | Method and Description |
---|---|
Long |
StringRedisConnection.zAdd(String key,
Set<StringRedisConnection.StringTuple> tuples)
Add
tuples to a sorted set at key , or update its score if it already exists. |
Long |
DefaultStringRedisConnection.zAdd(String key,
Set<StringRedisConnection.StringTuple> tuples) |
Long |
StringRedisConnection.zAdd(String key,
Set<StringRedisConnection.StringTuple> tuples,
RedisZSetCommands.ZAddArgs args)
Add
tuples to a sorted set at key , or update its score depending on the given
args . |
Long |
DefaultStringRedisConnection.zAdd(String key,
Set<StringRedisConnection.StringTuple> tuples,
RedisZSetCommands.ZAddArgs args) |
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.