public class SoftMapCache extends Object
Constructor | Description |
---|---|
SoftMapCache(boolean synched) |
Creates a new soft cache.
|
Modifier and Type | Method | Description |
---|---|---|
void |
clear() |
Clears the cache.
|
void |
doHouseKeeping() |
Triggers some house-keeping, i.e.
|
Object |
get(Object key) |
Returns the value associated with the given key.
|
void |
put(Object key,
Object value) |
Put a new value in the cache overwriting any existing value with the same key.
|
Object |
remove(Object key) |
Removed the value associated with the given key.
|
public SoftMapCache(boolean synched)
synched
- true if the Map containing the values should by synchronizedpublic Object get(Object key)
key
- the keypublic Object remove(Object key)
key
- the keypublic void put(Object key, Object value)
key
- The keyvalue
- the valuepublic void clear()
public void doHouseKeeping()
Copyright © 2018 Apache Software Foundation. All rights reserved.