public interface ZSetOperations<K,V>
Modifier and Type | Interface and Description |
---|---|
static interface |
ZSetOperations.TypedTuple<V>
Typed ZSet tuple.
|
Modifier and Type | Method and Description |
---|---|
Long |
add(K key,
Set<ZSetOperations.TypedTuple<V>> tuples) |
Boolean |
add(K key,
V value,
double score) |
Long |
count(K key,
double min,
double max) |
RedisOperations<K,V> |
getOperations() |
Double |
incrementScore(K key,
V value,
double delta) |
Long |
intersectAndStore(K key,
Collection<K> otherKeys,
K destKey) |
Long |
intersectAndStore(K key,
K otherKey,
K destKey) |
Set<V> |
range(K key,
long start,
long end) |
Set<V> |
rangeByScore(K key,
double min,
double max) |
Set<V> |
rangeByScore(K key,
double min,
double max,
long offset,
long count) |
Set<ZSetOperations.TypedTuple<V>> |
rangeByScoreWithScores(K key,
double min,
double max) |
Set<ZSetOperations.TypedTuple<V>> |
rangeByScoreWithScores(K key,
double min,
double max,
long offset,
long count) |
Set<ZSetOperations.TypedTuple<V>> |
rangeWithScores(K key,
long start,
long end) |
Long |
rank(K key,
Object o) |
Long |
remove(K key,
Object... values) |
Long |
removeRange(K key,
long start,
long end) |
Long |
removeRangeByScore(K key,
double min,
double max) |
Set<V> |
reverseRange(K key,
long start,
long end) |
Set<V> |
reverseRangeByScore(K key,
double min,
double max) |
Set<V> |
reverseRangeByScore(K key,
double min,
double max,
long offset,
long count) |
Set<ZSetOperations.TypedTuple<V>> |
reverseRangeByScoreWithScores(K key,
double min,
double max) |
Set<ZSetOperations.TypedTuple<V>> |
reverseRangeByScoreWithScores(K key,
double min,
double max,
long offset,
long count) |
Set<ZSetOperations.TypedTuple<V>> |
reverseRangeWithScores(K key,
long start,
long end) |
Long |
reverseRank(K key,
Object o) |
Cursor<ZSetOperations.TypedTuple<V>> |
scan(K key,
ScanOptions options) |
Double |
score(K key,
Object o) |
Long |
size(K key)
Returns the number of elements of the sorted set stored with given
key . |
Long |
unionAndStore(K key,
Collection<K> otherKeys,
K destKey) |
Long |
unionAndStore(K key,
K otherKey,
K destKey) |
Long |
zCard(K key)
Returns the number of elements of the sorted set stored with given
key . |
Long intersectAndStore(K key, Collection<K> otherKeys, K destKey)
Long unionAndStore(K key, Collection<K> otherKeys, K destKey)
Set<ZSetOperations.TypedTuple<V>> rangeWithScores(K key, long start, long end)
Set<ZSetOperations.TypedTuple<V>> reverseRangeWithScores(K key, long start, long end)
Set<V> reverseRangeByScore(K key, double min, double max, long offset, long count)
Set<ZSetOperations.TypedTuple<V>> rangeByScoreWithScores(K key, double min, double max)
Set<ZSetOperations.TypedTuple<V>> rangeByScoreWithScores(K key, double min, double max, long offset, long count)
Set<ZSetOperations.TypedTuple<V>> reverseRangeByScoreWithScores(K key, double min, double max)
Set<ZSetOperations.TypedTuple<V>> reverseRangeByScoreWithScores(K key, double min, double max, long offset, long count)
Long add(K key, Set<ZSetOperations.TypedTuple<V>> tuples)
Long size(K key)
key
.key
- zCard(Object)
Long zCard(K key)
key
.key
- RedisOperations<K,V> getOperations()
Cursor<ZSetOperations.TypedTuple<V>> scan(K key, ScanOptions options)
key
- options
-