public class DefaultZSetOperationsX<V> extends Object implements IKeyNamingPolicy
| Constructor and Description |
|---|
DefaultZSetOperationsX(org.springframework.data.redis.core.RedisTemplate<String,V> template,
IKeyNamingPolicy keyNamingPolicy) |
| Modifier and Type | Method and Description |
|---|---|
Long |
add(String key,
Set<org.springframework.data.redis.core.ZSetOperations.TypedTuple<V>> typedTuples) |
Boolean |
add(String key,
V value,
double score) |
Long |
count(String key,
double min,
double max) |
String |
getKeyName(String key)
Get naming key
|
org.springframework.data.redis.core.RedisOperations<K,V> |
getOperations() |
Double |
incrementScore(String key,
V value,
double delta) |
Long |
intersectAndStore(String key,
Collection<String> otherKeys,
String destKey) |
Long |
intersectAndStore(String key,
Collection<String> otherKeys,
String destKey,
org.springframework.data.redis.connection.RedisZSetCommands.Aggregate aggregate,
org.springframework.data.redis.connection.RedisZSetCommands.Weights weights) |
Long |
intersectAndStore(String key,
String otherKey,
String destKey) |
Set<V> |
range(String key,
long start,
long end) |
Set<V> |
rangeByLex(String key,
org.springframework.data.redis.connection.RedisZSetCommands.Range range) |
Set<V> |
rangeByLex(String key,
org.springframework.data.redis.connection.RedisZSetCommands.Range range,
org.springframework.data.redis.connection.RedisZSetCommands.Limit limit) |
Set<V> |
rangeByScore(String key,
double min,
double max) |
Set<V> |
rangeByScore(String key,
double min,
double max,
long offset,
long count) |
Set<byte[]> |
rangeByScore(String key,
String min,
String max) |
Set<byte[]> |
rangeByScore(String key,
String min,
String max,
long offset,
long count) |
Set<org.springframework.data.redis.core.ZSetOperations.TypedTuple<V>> |
rangeByScoreWithScores(String key,
double min,
double max) |
Set<org.springframework.data.redis.core.ZSetOperations.TypedTuple<V>> |
rangeByScoreWithScores(String key,
double min,
double max,
long offset,
long count) |
Set<org.springframework.data.redis.core.ZSetOperations.TypedTuple<V>> |
rangeWithScores(String key,
long start,
long end) |
Long |
rank(String key,
Object o) |
Long |
remove(String key,
Object... values) |
Long |
removeRange(String key,
long start,
long end) |
Long |
removeRangeByScore(String key,
double min,
double max) |
Set<V> |
reverseRange(String key,
long start,
long end) |
Set<V> |
reverseRangeByScore(String key,
double min,
double max) |
Set<V> |
reverseRangeByScore(String key,
double min,
double max,
long offset,
long count) |
Set<org.springframework.data.redis.core.ZSetOperations.TypedTuple<V>> |
reverseRangeByScoreWithScores(String key,
double min,
double max) |
Set<org.springframework.data.redis.core.ZSetOperations.TypedTuple<V>> |
reverseRangeByScoreWithScores(String key,
double min,
double max,
long offset,
long count) |
Set<org.springframework.data.redis.core.ZSetOperations.TypedTuple<V>> |
reverseRangeWithScores(String key,
long start,
long end) |
Long |
reverseRank(String key,
Object o) |
org.springframework.data.redis.core.Cursor<org.springframework.data.redis.core.ZSetOperations.TypedTuple<V>> |
scan(String key,
org.springframework.data.redis.core.ScanOptions options) |
Double |
score(String key,
Object o) |
Long |
size(String key) |
Long |
unionAndStore(String key,
Collection<String> otherKeys,
String destKey) |
Long |
unionAndStore(String key,
Collection<String> otherKeys,
String destKey,
org.springframework.data.redis.connection.RedisZSetCommands.Aggregate aggregate,
org.springframework.data.redis.connection.RedisZSetCommands.Weights weights) |
Long |
unionAndStore(String key,
String otherKey,
String destKey) |
Long |
zCard(String key) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetKeyNames, getKeyNames, mapKeyNamingpublic DefaultZSetOperationsX(org.springframework.data.redis.core.RedisTemplate<String,V> template, IKeyNamingPolicy keyNamingPolicy)
public Long add(String key, Set<org.springframework.data.redis.core.ZSetOperations.TypedTuple<V>> typedTuples)
public Long intersectAndStore(String key, Collection<String> otherKeys, String destKey)
public Long intersectAndStore(String key, Collection<String> otherKeys, String destKey, org.springframework.data.redis.connection.RedisZSetCommands.Aggregate aggregate, org.springframework.data.redis.connection.RedisZSetCommands.Weights weights)
public Set<org.springframework.data.redis.core.ZSetOperations.TypedTuple<V>> rangeWithScores(String key, long start, long end)
public Set<org.springframework.data.redis.core.ZSetOperations.TypedTuple<V>> reverseRangeWithScores(String key, long start, long end)
public Set<V> rangeByLex(String key, org.springframework.data.redis.connection.RedisZSetCommands.Range range)
public Set<V> rangeByLex(String key, org.springframework.data.redis.connection.RedisZSetCommands.Range range, org.springframework.data.redis.connection.RedisZSetCommands.Limit limit)
public Set<V> rangeByScore(String key, double min, double max, long offset, long count)
public Set<V> reverseRangeByScore(String key, double min, double max, long offset, long count)
public Set<org.springframework.data.redis.core.ZSetOperations.TypedTuple<V>> rangeByScoreWithScores(String key, double min, double max)
public Set<org.springframework.data.redis.core.ZSetOperations.TypedTuple<V>> rangeByScoreWithScores(String key, double min, double max, long offset, long count)
public Set<org.springframework.data.redis.core.ZSetOperations.TypedTuple<V>> reverseRangeByScoreWithScores(String key, double min, double max)
public Set<org.springframework.data.redis.core.ZSetOperations.TypedTuple<V>> reverseRangeByScoreWithScores(String key, double min, double max, long offset, long count)
public Long unionAndStore(String key, Collection<String> otherKeys, String destKey)
public Long unionAndStore(String key, Collection<String> otherKeys, String destKey, org.springframework.data.redis.connection.RedisZSetCommands.Aggregate aggregate, org.springframework.data.redis.connection.RedisZSetCommands.Weights weights)
public org.springframework.data.redis.core.Cursor<org.springframework.data.redis.core.ZSetOperations.TypedTuple<V>> scan(String key, org.springframework.data.redis.core.ScanOptions options)
public Set<byte[]> rangeByScore(String key, String min, String max, long offset, long count)
public String getKeyName(String key)
IKeyNamingPolicygetKeyName in interface IKeyNamingPolicypublic org.springframework.data.redis.core.RedisOperations<K,V> getOperations()
Copyright © 2020. All rights reserved.