Interface ResultCache<K,T>
- Type Parameters:
K
-T
-
- All Superinterfaces:
Clearable
- All Known Implementing Classes:
LRUResultCache
- Since:
- 4.0.0
- Author:
- Florian Kleedorfer
-
Method Summary
Methods inherited from interface org.eclipse.rdf4j.spring.resultcache.Clearable
clearCachedResults, markDirty
-
Method Details
-
get
-
put
-
bypassForCurrentThread
void bypassForCurrentThread()Calling this method instructs the cache to returnnull
to allget(K)
calls and ignore anyput(K, T)
calls from the current thread until the cache is cleared. Context: after a write operation on a connection (which is assumed to be handled exclusively by a dedicated thread), the local cache must be cleared and the global cache bypassed until the connection is returned.
-