-
Optional Element Summary
Optional Elements
boolean
Flag to identity if CacheResult
is disabled.
Those conditions(by contains ignore case or regular expression match) will be joined by OR
, not AND
.
long
long
int
If the query result won't be cached if it's size is bigger than maxSize
if the return type is Collection
or DataSet
.
int
Minimum required size to cache query result if the return type is Collection
or DataSet
.
It's used to copy/clone the result when save result to cache or fetch result from cache.
-
Element Details
-
disabled
boolean disabled
Flag to identity if CacheResult
is disabled.
- Returns:
- Default:
- false
-
liveTime
long liveTime
- Returns:
- Default:
- 1800000L
-
idleTime
long idleTime
- Returns:
- Default:
- 180000L
-
minSize
int minSize
Minimum required size to cache query result if the return type is Collection
or DataSet
.
This setting will be ignore if the return types are not Collection
or DataSet
.
- Returns:
- Default:
- 0
-
maxSize
int maxSize
If the query result won't be cached if it's size is bigger than maxSize
if the return type is Collection
or DataSet
.
This setting will be ignore if the return types are not Collection
or DataSet
.
- Returns:
- Default:
- 2147483647
-
transfer
It's used to copy/clone the result when save result to cache or fetch result from cache.
It can be set to "none" and "kryo"
.
- Returns:
- Default:
- "none"
-
filter
Those conditions(by contains ignore case or regular expression match) will be joined by OR
, not AND
.
It's only applied if target of annotation RefreshCache
is Type
, and will be ignored if target is method.
- Returns:
- Default:
- {"query", "queryFor", "list", "get", "find", "findFirst", "findOnlyOne", "exist", "notExist", "count"}