Key
- The type for the cache key entriesValue
- The type for the cache value entriespublic interface OgnlCacheFactory<Key,Value>
OgnlUtil
to create appropriate OGNL
caches based on configuration.Modifier and Type | Interface and Description |
---|---|
static class |
OgnlCacheFactory.CacheType |
Modifier and Type | Method and Description |
---|---|
OgnlCache<Key,Value> |
buildOgnlCache() |
default OgnlCache<Key,Value> |
buildOgnlCache(int evictionLimit,
int initialCapacity,
float loadFactor,
boolean lruCache)
Deprecated.
since 6.4.0, use
buildOgnlCache(int, int, float, CacheType) |
OgnlCache<Key,Value> |
buildOgnlCache(int evictionLimit,
int initialCapacity,
float loadFactor,
OgnlCacheFactory.CacheType cacheType) |
int |
getCacheMaxSize() |
OgnlCacheFactory.CacheType |
getDefaultCacheType() |
default boolean |
getUseLRUCache()
Deprecated.
since 6.4.0
|
@Deprecated default OgnlCache<Key,Value> buildOgnlCache(int evictionLimit, int initialCapacity, float loadFactor, boolean lruCache)
buildOgnlCache(int, int, float, CacheType)
lruCache
is false
, the cache type could still be LRU if the default cache type is
configured as such.OgnlCache<Key,Value> buildOgnlCache(int evictionLimit, int initialCapacity, float loadFactor, OgnlCacheFactory.CacheType cacheType)
evictionLimit
- maximum capacity of the cache where applicable for cache type choseninitialCapacity
- initial capacity of the cache where applicable for cache type chosenloadFactor
- load factor of the cache where applicable for cache type chosencacheType
- type of cache to buildint getCacheMaxSize()
@Deprecated default boolean getUseLRUCache()
OgnlCacheFactory.CacheType getDefaultCacheType()
Copyright © 2000–2024 Apache Software Foundation. All rights reserved.