Package org.apache.solr.common.util
Class ObjectCache
- All Implemented Interfaces:
Closeable,AutoCloseable,SolrCloseable,Cache<String,Object>
Simple object cache with a type-safe accessor.
-
Field Summary
Fields inherited from class org.apache.solr.common.util.MapBackedCache
map -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.solr.common.util.MapBackedCache
asMap, computeIfAbsent
-
Constructor Details
-
ObjectCache
public ObjectCache()
-
-
Method Details
-
put
-
get
-
remove
-
clear
public void clear() -
get
-
computeIfAbsent
-
isClosed
public boolean isClosed()- Specified by:
isClosedin interfaceSolrCloseable
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-