public interface ISecondCache extends ICache
| Modifier and Type | Method and Description |
|---|---|
List |
get(IQuery query,
DB db)
读取分片缓存.
|
Collection<SocketAddress> |
getAvailableServers()
获取可以用的服务链接.
|
List |
getGlobal(IQuery query,
String clusterName,
String tableName)
读取全局缓存
|
void |
put(IQuery query,
DB db,
List data)
添加到分片缓存.
|
void |
putGlobal(IQuery query,
String clusterName,
String tableName,
List data)
添加到全局缓存
|
void |
remove(DB db)
清除分片缓存.
|
void |
removeGlobal(String clusterName,
String tableName)
清除全局缓存.
|
Collection<SocketAddress> getAvailableServers()
void putGlobal(IQuery query, String clusterName, String tableName, List data)
query - 查询条件clusterName - 集群名clazz - 对象classList getGlobal(IQuery query, String clusterName, String tableName)
query - 查询条件clusterName - 集群名clazz - 对象classvoid remove(DB db)
query - 查询条件.Copyright © 2015. All rights reserved.