Package 

Interface DiskCache


  • 
    public interface DiskCache
    
                        

    An LRU cache of files.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public interface DiskCache.Snapshot

      A snapshot of the values for an entry.

      IMPORTANT: You must only readmetadata or data. Mutating either file can corrupt the disk cache. To modify the contents of those files, use openEditor.

      public interface DiskCache.Editor

      Edits the values for an entry.

      Calling metadata or data marks that file as dirty so it will be persisted to disk if this editor is committed.

      IMPORTANT: You must only read or modify the contents of metadata or data. Renaming, locking, or other mutating file operations can corrupt the disk cache.

      public final class DiskCache.Builder