public class DefaultSetOperationsX<V> extends Object implements IKeyNamingPolicy
| Constructor and Description |
|---|
DefaultSetOperationsX(org.springframework.data.redis.core.RedisTemplate<String,V> template,
IKeyNamingPolicy keyNamingPolicy) |
| Modifier and Type | Method and Description |
|---|---|
Long |
add(String key,
V... values) |
Set<V> |
difference(String key,
Collection<String> otherKeys) |
Set<V> |
difference(String key,
String otherKey) |
Long |
differenceAndStore(String key,
Collection<String> otherKeys,
String destKey) |
Long |
differenceAndStore(String key,
String otherKey,
String destKey) |
Set<V> |
distinctRandomMembers(String key,
long count) |
String |
getKeyName(String key)
Get naming key
|
org.springframework.data.redis.core.RedisOperations<K,V> |
getOperations() |
Set<V> |
intersect(String key,
Collection<String> otherKeys) |
Set<V> |
intersect(String key,
String otherKey) |
Long |
intersectAndStore(String key,
Collection<String> otherKeys,
String destKey) |
Long |
intersectAndStore(String key,
String otherKey,
String destKey) |
Boolean |
isMember(String key,
Object o) |
Set<V> |
members(String key) |
Boolean |
move(String key,
V value,
String destKey) |
V |
pop(String key) |
List<V> |
pop(String key,
long count) |
V |
randomMember(String key) |
List<V> |
randomMembers(String key,
long count) |
Long |
remove(String key,
Object... values) |
org.springframework.data.redis.core.Cursor<V> |
scan(String key,
org.springframework.data.redis.core.ScanOptions options) |
Long |
size(String key) |
Set<V> |
union(String key,
Collection<String> otherKeys) |
Set<V> |
union(String key,
String otherKey) |
Long |
unionAndStore(String key,
Collection<String> otherKeys,
String destKey) |
Long |
unionAndStore(String key,
String otherKey,
String destKey) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetKeyNames, getKeyNames, mapKeyNamingpublic DefaultSetOperationsX(org.springframework.data.redis.core.RedisTemplate<String,V> template, IKeyNamingPolicy keyNamingPolicy)
public Set<V> difference(String key, Collection<String> otherKeys)
public Long differenceAndStore(String key, Collection<String> otherKeys, String destKey)
public Set<V> intersect(String key, Collection<String> otherKeys)
public Long intersectAndStore(String key, Collection<String> otherKeys, String destKey)
public Set<V> union(String key, Collection<String> otherKeys)
public Long unionAndStore(String key, Collection<String> otherKeys, String destKey)
public org.springframework.data.redis.core.Cursor<V> scan(String key, org.springframework.data.redis.core.ScanOptions options)
public String getKeyName(String key)
IKeyNamingPolicygetKeyName in interface IKeyNamingPolicypublic org.springframework.data.redis.core.RedisOperations<K,V> getOperations()
Copyright © 2020. All rights reserved.