@Target(value=TYPE) @Retention(value=RUNTIME) public @interface CacheBeanTuning
Note that this is not useful when distributed L2 bean caches are used like ElasticSearch, Hazelcast, Ignite etc.
| Modifier and Type | Optional Element and Description |
|---|---|
int |
maxIdleSecs
The maximum time (in seconds) that a cache entry is allowed to stay in the
cache when it has not been accessed.
|
int |
maxSecsToLive
The maximum time (in seconds) a cache entry is allowed to stay in the
cache.
|
int |
maxSize
The maximum size for the cache.
|
int |
trimFrequency
The frequency (in seconds) that cache trimming should occur.
|
public abstract int maxSize
This defaults to 0 which means unlimited.
public abstract int maxIdleSecs
This defaults to 0 which means unlimited.
public abstract int maxSecsToLive
This is not generally required as the cache entries are automatically evicted when related data changes are committed.
This defaults to 0 which means unlimited.
public abstract int trimFrequency
This is a hint for cache implementations that use background cache trimming.
Copyright © 2019. All rights reserved.