Key
- The type for the cache key entriesValue
- The type for the cache value entriespublic class OgnlDefaultCache<Key,Value> extends Object implements OgnlCache<Key,Value>
Constructor and Description |
---|
OgnlDefaultCache(int evictionLimit,
int initialCapacity,
float loadFactor) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
Value |
get(Key key) |
int |
getEvictionLimit() |
void |
put(Key key,
Value value) |
void |
putIfAbsent(Key key,
Value value) |
void |
setEvictionLimit(int cacheEvictionLimit) |
int |
size() |
public OgnlDefaultCache(int evictionLimit, int initialCapacity, float loadFactor)
public void putIfAbsent(Key key, Value value)
putIfAbsent
in interface OgnlCache<Key,Value>
public int getEvictionLimit()
getEvictionLimit
in interface OgnlCache<Key,Value>
public void setEvictionLimit(int cacheEvictionLimit)
setEvictionLimit
in interface OgnlCache<Key,Value>
Copyright © 2000–2022 Apache Software Foundation. All rights reserved.