Class MemoryDiffCache


  • public class MemoryDiffCache
    extends Object
    An in-memory diff cache implementation.
    • Field Detail

      • diffCache

        protected final Cache<org.apache.jackrabbit.oak.cache.CacheValue,​StringValue> diffCache
        Diff cache. Key: PathRev, value: StringValue
      • diffCacheStats

        protected final org.apache.jackrabbit.oak.cache.CacheStats diffCacheStats
    • Method Detail

      • getChanges

        @Nullable
        public @Nullable String getChanges​(@NotNull
                                           @NotNull RevisionVector from,
                                           @NotNull
                                           @NotNull RevisionVector to,
                                           @NotNull
                                           @NotNull Path path,
                                           @Nullable
                                           @Nullable org.apache.jackrabbit.oak.plugins.document.DiffCache.Loader loader)
      • newEntry

        @NotNull
        public @NotNull org.apache.jackrabbit.oak.plugins.document.DiffCache.Entry newEntry​(@NotNull
                                                                                            @NotNull RevisionVector from,
                                                                                            @NotNull
                                                                                            @NotNull RevisionVector to,
                                                                                            boolean local)
      • getStats

        @NotNull
        public @NotNull Iterable<org.apache.jackrabbit.oak.cache.CacheStats> getStats()
      • invalidateAll

        public void invalidateAll()