public class SpringRedisPubSubPolicy extends Object implements net.oschina.j2cache.cluster.ClusterPolicy
| 构造器和说明 |
|---|
SpringRedisPubSubPolicy() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
clear(String region)
清除本地整个缓存区域
|
void |
connect(Properties props,
net.oschina.j2cache.CacheProviderHolder holder) |
void |
disconnect() |
void |
evict(String region,
String... keys)
删除本地某个缓存条目
|
boolean |
isLocalCommand(net.oschina.j2cache.Command cmd) |
void |
publish(net.oschina.j2cache.Command cmd) |
public boolean isLocalCommand(net.oschina.j2cache.Command cmd)
isLocalCommand 在接口中 net.oschina.j2cache.cluster.ClusterPolicypublic void connect(Properties props, net.oschina.j2cache.CacheProviderHolder holder)
connect 在接口中 net.oschina.j2cache.cluster.ClusterPolicypublic void evict(String region, String... keys)
evict 在接口中 net.oschina.j2cache.cluster.ClusterPolicyregion - 区域名称keys - 缓存键值public void clear(String region)
clear 在接口中 net.oschina.j2cache.cluster.ClusterPolicyregion - 区域名称public void publish(net.oschina.j2cache.Command cmd)
publish 在接口中 net.oschina.j2cache.cluster.ClusterPolicypublic void disconnect()
disconnect 在接口中 net.oschina.j2cache.cluster.ClusterPolicyCopyright © 2018. All rights reserved.