public class DefaultClusterOperationsX<V> extends Object implements IKeyNamingPolicy
| Constructor and Description |
|---|
DefaultClusterOperationsX(org.springframework.data.redis.core.RedisTemplate<String,V> template,
IKeyNamingPolicy keyNamingPolicy)
Creates new
DefaultClusterOperations delegating to the given RedisTemplate. |
| Modifier and Type | Method and Description |
|---|---|
void |
addSlots(org.springframework.data.redis.connection.RedisClusterNode arg0,
int... arg1) |
void |
addSlots(org.springframework.data.redis.connection.RedisClusterNode arg0,
org.springframework.data.redis.connection.RedisClusterNode.SlotRange arg1) |
void |
bgReWriteAof(org.springframework.data.redis.connection.RedisClusterNode arg0) |
void |
bgSave(org.springframework.data.redis.connection.RedisClusterNode arg0) |
<T> T |
execute(org.springframework.data.redis.core.RedisClusterCallback<T> arg0) |
void |
flushDb(org.springframework.data.redis.connection.RedisClusterNode arg0) |
void |
forget(org.springframework.data.redis.connection.RedisClusterNode arg0) |
String |
getKeyName(String key)
Get naming key
|
org.springframework.data.redis.core.RedisOperations<K,V> |
getOperations() |
Collection<org.springframework.data.redis.connection.RedisClusterNode> |
getSlaves(org.springframework.data.redis.connection.RedisClusterNode arg0) |
Set<String> |
keys(org.springframework.data.redis.connection.RedisClusterNode node,
String pattern)
Get all keys located at given node.
|
void |
meet(org.springframework.data.redis.connection.RedisClusterNode arg0) |
String |
ping(org.springframework.data.redis.connection.RedisClusterNode arg0) |
K |
randomKey(org.springframework.data.redis.connection.RedisClusterNode arg0) |
void |
reshard(org.springframework.data.redis.connection.RedisClusterNode arg0,
int arg1,
org.springframework.data.redis.connection.RedisClusterNode arg2) |
void |
save(org.springframework.data.redis.connection.RedisClusterNode arg0) |
void |
shutdown(org.springframework.data.redis.connection.RedisClusterNode arg0) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetKeyNames, getKeyNames, mapKeyNamingpublic DefaultClusterOperationsX(org.springframework.data.redis.core.RedisTemplate<String,V> template, IKeyNamingPolicy keyNamingPolicy)
DefaultClusterOperations delegating to the given RedisTemplate.template - must not be null.keyNamingPolicy - key naming policypublic Set<String> keys(org.springframework.data.redis.connection.RedisClusterNode node, String pattern)
public String getKeyName(String key)
IKeyNamingPolicygetKeyName in interface IKeyNamingPolicypublic K randomKey(org.springframework.data.redis.connection.RedisClusterNode arg0)
randomKey in interface org.springframework.data.redis.core.ClusterOperations<K,V>public String ping(org.springframework.data.redis.connection.RedisClusterNode arg0)
ping in interface org.springframework.data.redis.core.ClusterOperations<K,V>public void addSlots(org.springframework.data.redis.connection.RedisClusterNode arg0,
int... arg1)
addSlots in interface org.springframework.data.redis.core.ClusterOperations<K,V>public void addSlots(org.springframework.data.redis.connection.RedisClusterNode arg0,
org.springframework.data.redis.connection.RedisClusterNode.SlotRange arg1)
addSlots in interface org.springframework.data.redis.core.ClusterOperations<K,V>public void bgReWriteAof(org.springframework.data.redis.connection.RedisClusterNode arg0)
bgReWriteAof in interface org.springframework.data.redis.core.ClusterOperations<K,V>public void bgSave(org.springframework.data.redis.connection.RedisClusterNode arg0)
bgSave in interface org.springframework.data.redis.core.ClusterOperations<K,V>public void meet(org.springframework.data.redis.connection.RedisClusterNode arg0)
meet in interface org.springframework.data.redis.core.ClusterOperations<K,V>public void forget(org.springframework.data.redis.connection.RedisClusterNode arg0)
forget in interface org.springframework.data.redis.core.ClusterOperations<K,V>public void flushDb(org.springframework.data.redis.connection.RedisClusterNode arg0)
flushDb in interface org.springframework.data.redis.core.ClusterOperations<K,V>public Collection<org.springframework.data.redis.connection.RedisClusterNode> getSlaves(org.springframework.data.redis.connection.RedisClusterNode arg0)
getSlaves in interface org.springframework.data.redis.core.ClusterOperations<K,V>public void save(org.springframework.data.redis.connection.RedisClusterNode arg0)
save in interface org.springframework.data.redis.core.ClusterOperations<K,V>public void shutdown(org.springframework.data.redis.connection.RedisClusterNode arg0)
shutdown in interface org.springframework.data.redis.core.ClusterOperations<K,V>public void reshard(org.springframework.data.redis.connection.RedisClusterNode arg0,
int arg1,
org.springframework.data.redis.connection.RedisClusterNode arg2)
reshard in interface org.springframework.data.redis.core.ClusterOperations<K,V>@Nullable public <T> T execute(org.springframework.data.redis.core.RedisClusterCallback<T> arg0)
public org.springframework.data.redis.core.RedisOperations<K,V> getOperations()
Copyright © 2020. All rights reserved.