net.paoding.rose.jade.annotation
注释类型 Cache


@Target(value=METHOD)
@Retention(value=RUNTIME)
@Documented
public @interface Cache

使用:{#link Cache} 标注需要缓存的 DAO 接口方法。默认的 expiry 为 0 表示没有过期限制。

作者:
han.liao

必需元素摘要
 String key
          标注 DAO 方法的缓存 Key.
 
可选元素摘要
 Class<?> cl
           
 int expiry
          标注 DAO 缓存的过期时间。
 String pool
          标注 DAO 方法的缓存 Pool
 

元素详细信息

key

public abstract String key
标注 DAO 方法的缓存 Key.

返回:
缓存 Key

pool

public abstract String pool
标注 DAO 方法的缓存 Pool

返回:
缓存 Pool
默认值:
"default"

expiry

public abstract int expiry
标注 DAO 缓存的过期时间。

返回:
缓存过期时间
默认值:
0

cl

public abstract Class<?> cl
默认值:
java.lang.Object.class


Copyright © 2012. All Rights Reserved.