Interface StorageCache
- All Known Implementing Classes:
BaseStorageCache,InstrumentedStorageCache,ThreadLocalDocumentCache
public interface StorageCache
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic interface -
Method Summary
Modifier and TypeMethodDescriptionfindInCache(Query baseQuery, StorageCache.LoadFromStorageStrategy loadFromStorageStrategy) initCacheContext(Storage storage) default booleanbooleanboolean
-
Method Details
-
findInCache
QueryResult findInCache(Query baseQuery, StorageCache.LoadFromStorageStrategy loadFromStorageStrategy) -
remove
- Parameters:
document- document to be removed- Returns:
trueif document has been marked for removal in cache. The removal will be done in storage when the is closed. Otherwise, returnsfalseand document should be removed from storage manually.
-
save
- Parameters:
document- document to be saved- Returns:
trueif document has been stored in cache. The save of document in storage will be done when the is closed. Otherwise, returnsfalseand document should be saved in storage manually.
-
isCacheActive
default boolean isCacheActive() -
initCacheContext
-