All Known Implementing Classes:
BaseStorageCache, InstrumentedStorageCache, ThreadLocalDocumentCache

public interface StorageCache
  • Method Details

    • findInCache

      QueryResult findInCache(Query baseQuery, StorageCache.LoadFromStorageStrategy loadFromStorageStrategy)
    • remove

      boolean remove(Document document)
      Parameters:
      document - document to be removed
      Returns:
      true if document has been marked for removal in cache. The removal will be done in storage when the is closed. Otherwise, returns false and document should be removed from storage manually.
    • save

      boolean save(Document document)
      Parameters:
      document - document to be saved
      Returns:
      true if document has been stored in cache. The save of document in storage will be done when the is closed. Otherwise, returns false and document should be saved in storage manually.
    • isCacheActive

      default boolean isCacheActive()
    • initCacheContext

      StorageCache.CacheContext initCacheContext(Storage storage)