|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
public interface GroupCacheable
分组缓存顶层接口,可分组管理的集中缓存,描述一切可抽象为缓存的对象,赋予分组特征。
缓存由组件统一集中管理,组名称和缓存名称组合唯一标识一个缓存。
为避免冲突,统一使用缓存的创建者(调用类)的类名称作为组名称,如com.seeyon.ctp.common.cache.CacheFactory。
提供了类似数据库的对象暂存功能,在同一JVM可以通过唯一标识访问。
参照了Apache JCS和JSR107的设计。特征:
| 方法摘要 | |
|---|---|
void |
clear()
清除所有缓存项。 |
java.lang.String |
getGroup()
取得缓存所属的组。 |
java.lang.String |
getName()
取得缓存名称。 |
boolean |
isEmpty()
Returns true if this list contains no elements. |
int |
size()
Returns the number of elements in this list. |
| 方法详细信息 |
|---|
java.lang.String getGroup()
java.lang.String getName()
int size()
boolean isEmpty()
void clear()
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||