public class DefaultBoundSetOperationsX<V> extends Object implements IBoundOperationsX, IKeyNamingPolicy
| Constructor and Description |
|---|
DefaultBoundSetOperationsX(String key,
org.springframework.data.redis.core.RedisOperations<String,V> operations,
IKeyNamingPolicy keyNamingPolicy)
Constructs a new
DefaultBoundSetOperations instance. |
| Modifier and Type | Method and Description |
|---|---|
Long |
add(V... arg0) |
Set<V> |
diff(Collection<K> arg0) |
Set<V> |
diff(K arg0) |
void |
diffAndStore(Collection<K> arg0,
K arg1) |
void |
diffAndStore(K arg0,
K arg1) |
Set<V> |
distinctRandomMembers(long arg0) |
Boolean |
expire(long arg0,
TimeUnit arg1) |
Boolean |
expireAt(Date arg0) |
Long |
getExpire() |
K |
getKey() |
String |
getKeyName(String key)
Get naming key
|
org.springframework.data.redis.core.RedisOperations<K,V> |
getOperations() |
String |
getOriginKey()
Get origin Key
|
org.springframework.data.redis.connection.DataType |
getType() |
Set<V> |
intersect(Collection<K> arg0) |
Set<V> |
intersect(K arg0) |
void |
intersectAndStore(Collection<K> arg0,
K arg1) |
void |
intersectAndStore(K arg0,
K arg1) |
Boolean |
isMember(Object arg0) |
Set<V> |
members() |
Boolean |
move(K arg0,
V arg1) |
Boolean |
persist() |
V |
pop() |
V |
randomMember() |
List<V> |
randomMembers(long arg0) |
Long |
remove(Object... arg0) |
void |
rename(String newKey) |
org.springframework.data.redis.core.Cursor<V> |
scan(org.springframework.data.redis.core.ScanOptions arg0) |
Long |
size() |
Set<V> |
union(Collection<K> arg0) |
Set<V> |
union(K arg0) |
void |
unionAndStore(Collection<K> arg0,
K arg1) |
void |
unionAndStore(K arg0,
K arg1) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetKeyNames, getKeyNames, mapKeyNamingpublic DefaultBoundSetOperationsX(String key, org.springframework.data.redis.core.RedisOperations<String,V> operations, IKeyNamingPolicy keyNamingPolicy)
DefaultBoundSetOperations instance.key - operations - keyNamingPolicy - key naming policypublic String getOriginKey()
getOriginKey in interface IBoundOperationsXpublic void rename(String newKey)
rename in interface org.springframework.data.redis.core.BoundKeyOperations<String>public String getKeyName(String key)
IKeyNamingPolicygetKeyName in interface IKeyNamingPolicypublic Long add(V... arg0)
add in interface org.springframework.data.redis.core.BoundSetOperations<K,V>public Set<V> diff(K arg0)
diff in interface org.springframework.data.redis.core.BoundSetOperations<K,V>public Set<V> diff(Collection<K> arg0)
diff in interface org.springframework.data.redis.core.BoundSetOperations<K,V>public void diffAndStore(K arg0,
K arg1)
diffAndStore in interface org.springframework.data.redis.core.BoundSetOperations<K,V>public void diffAndStore(Collection<K> arg0, K arg1)
diffAndStore in interface org.springframework.data.redis.core.BoundSetOperations<K,V>public org.springframework.data.redis.core.RedisOperations<K,V> getOperations()
getOperations in interface org.springframework.data.redis.core.BoundSetOperations<K,V>public Set<V> intersect(K arg0)
intersect in interface org.springframework.data.redis.core.BoundSetOperations<K,V>public Set<V> intersect(Collection<K> arg0)
intersect in interface org.springframework.data.redis.core.BoundSetOperations<K,V>public void intersectAndStore(K arg0,
K arg1)
intersectAndStore in interface org.springframework.data.redis.core.BoundSetOperations<K,V>public void intersectAndStore(Collection<K> arg0, K arg1)
intersectAndStore in interface org.springframework.data.redis.core.BoundSetOperations<K,V>public Boolean isMember(Object arg0)
isMember in interface org.springframework.data.redis.core.BoundSetOperations<K,V>public Set<V> members()
members in interface org.springframework.data.redis.core.BoundSetOperations<K,V>public Boolean move(K arg0, V arg1)
move in interface org.springframework.data.redis.core.BoundSetOperations<K,V>public V randomMember()
randomMember in interface org.springframework.data.redis.core.BoundSetOperations<K,V>public Set<V> distinctRandomMembers(long arg0)
distinctRandomMembers in interface org.springframework.data.redis.core.BoundSetOperations<K,V>public List<V> randomMembers(long arg0)
randomMembers in interface org.springframework.data.redis.core.BoundSetOperations<K,V>public Long remove(Object... arg0)
remove in interface org.springframework.data.redis.core.BoundSetOperations<K,V>public V pop()
pop in interface org.springframework.data.redis.core.BoundSetOperations<K,V>public Long size()
size in interface org.springframework.data.redis.core.BoundSetOperations<K,V>public Set<V> union(K arg0)
union in interface org.springframework.data.redis.core.BoundSetOperations<K,V>public Set<V> union(Collection<K> arg0)
union in interface org.springframework.data.redis.core.BoundSetOperations<K,V>public void unionAndStore(K arg0,
K arg1)
unionAndStore in interface org.springframework.data.redis.core.BoundSetOperations<K,V>public void unionAndStore(Collection<K> arg0, K arg1)
unionAndStore in interface org.springframework.data.redis.core.BoundSetOperations<K,V>public org.springframework.data.redis.connection.DataType getType()
getType in interface org.springframework.data.redis.core.BoundKeyOperations<K>public org.springframework.data.redis.core.Cursor<V> scan(org.springframework.data.redis.core.ScanOptions arg0)
scan in interface org.springframework.data.redis.core.BoundSetOperations<K,V>public K getKey()
getKey in interface org.springframework.data.redis.core.BoundKeyOperations<K>public Boolean expire(long arg0, TimeUnit arg1)
expire in interface org.springframework.data.redis.core.BoundKeyOperations<K>public Boolean expireAt(Date arg0)
expireAt in interface org.springframework.data.redis.core.BoundKeyOperations<K>public Long getExpire()
getExpire in interface org.springframework.data.redis.core.BoundKeyOperations<K>public Boolean persist()
persist in interface org.springframework.data.redis.core.BoundKeyOperations<K>Copyright © 2020. All rights reserved.