@Documented @Retention(value=RUNTIME) @Target(value=FIELD) public @interface CreateCache
| Modifier and Type | Optional Element and Description |
|---|---|
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 |
localExpire
Use to specify the local cache expire time when cacheType=CacheType.BOTH, use "expire" if absent.
|
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 int localExpire
public abstract CacheType cacheType
public abstract int localLimit
public abstract String serialPolicy
public abstract String keyConvertor
Copyright © 2013–2022. All rights reserved.