@Documented @Retention(value=RUNTIME) @Target(value=FIELD) public @interface CreateCache
| 限定符和类型 | 可选元素和说明 |
|---|---|
String |
area
If you want to use multi backend cache system, you can setup multi "cache area" in configuration,
this attribute specifies the name of the "cache area" you want to use.
|
CacheType |
cacheType
Type of the Cache instance.
|
int |
expire
The default expire time of this Cache instance.
|
String |
keyConvertor
Specify the key convertor.
|
int |
localLimit
Specify max elements in local memory when cacheType is CacheType.LOCAL or CacheType.BOTH.
|
String |
name
The name of this Cache instance, optional.
|
String |
serialPolicy
Specify the serialization policy of remote cache when cacheType is CacheType.REMOTE or CacheType.BOTH.
|
TimeUnit |
timeUnit
Specify the time unit of expire.
|
public abstract String area
public abstract String name
public abstract TimeUnit timeUnit
public abstract int expire
public abstract CacheType cacheType
public abstract int localLimit
public abstract String serialPolicy
public abstract String keyConvertor
Copyright © 2013–2018. All rights reserved.