注释类型 CreateCache
已过时。
replaced by CacheManager.getOrCreateCache(QuickConfig), the CacheManager instance
can be injected use annotation such as @Autowired.
Created on 2016/12/9.
- 作者:
- huangli
-
可选元素概要
可选元素修饰符和类型可选元素说明已过时。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.已过时。Type of the Cache instance.int已过时。The default expire time of this Cache instance.已过时。Specify the key convertor.int已过时。Use to specify the local cache expire time when cacheType=CacheType.BOTH, use "expire" if absent.int已过时。Specify max elements in local memory when cacheType is CacheType.LOCAL or CacheType.BOTH.已过时。The name of this Cache instance, optional.已过时。Specify the serialization policy of remote cache when cacheType is CacheType.REMOTE or CacheType.BOTH.boolean已过时。if cacheType is CacheType.BOTH and the remote cache supports broadcast (or BroadcastManager bean exists), invalidate local cache of all process after put/remove operation.已过时。Specify the time unit of expire.
-
元素详细资料
-
area
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.- 返回:
- the name of cache area
- 默认值:
- "default"
-
name
String name已过时。The name of this Cache instance, optional. If you do not specify, JetCache will auto generate one. The name is used to display statistics information and as part of key prefix when using a remote cache. If two @CreateCache have same name and area, they will point to same Cache instance.- 返回:
- the cache name
- 默认值:
- "$$undefined$$"
-
timeUnit
TimeUnit timeUnit已过时。Specify the time unit of expire.- 返回:
- the time unit of expire
- 默认值:
- SECONDS
-
expire
int expire已过时。The default expire time of this Cache instance. Use global config if the attribute value is absent, and if the global config is not defined either, use infinity.- 返回:
- the default expire time
- 默认值:
- -2147483648
-
localExpire
int localExpire已过时。Use to specify the local cache expire time when cacheType=CacheType.BOTH, use "expire" if absent.- 返回:
- the local cache expire time
- 默认值:
- -2147483648
-
cacheType
CacheType cacheType已过时。Type of the Cache instance. May be CacheType.REMOTE, CacheType.LOCAL, CacheType.BOTH. Use two level cache (local+remote) when value is CacheType.BOTH.- 返回:
- the cache type
- 默认值:
- REMOTE
-
syncLocal
boolean syncLocal已过时。if cacheType is CacheType.BOTH and the remote cache supports broadcast (or BroadcastManager bean exists), invalidate local cache of all process after put/remove operation.- 返回:
- should sync local cache
- 默认值:
- false
-
localLimit
int localLimit已过时。Specify max elements in local memory when cacheType is CacheType.LOCAL or CacheType.BOTH. Use global config if the attribute value is absent, and if the global config is not defined either, use CacheConsts.DEFAULT_LOCAL_LIMIT instead.- 返回:
- local maximal elements of the LOCAL/BOTH cache
- 默认值:
- -2147483648
-
serialPolicy
String serialPolicy已过时。Specify the serialization policy of remote cache when cacheType is CacheType.REMOTE or CacheType.BOTH. The JetCache build-in serialPolicy are SerialPolicy.JAVA or SerialPolicy.KRYO. Use global config if the attribute value is absent, and if the global config is not defined either, use SerialPolicy.JAVA instead.- 返回:
- the serialization policy name of cache value
- 默认值:
- "$$undefined$$"
-
keyConvertor
String keyConvertor已过时。Specify the key convertor. Used to convert the complex key object. The JetCache build-in keyConvertor are KeyConvertor.FASTJSON or KeyConvertor.NONE. NONE indicate do not convert, FASTJSON will use fastjson to convert key object to a string. Use global config if the attribute value is absent.- 返回:
- convertor name of cache key
- 默认值:
- "$$undefined$$"
-