Package 

Interface DiskCache.Snapshot


  • @ExperimentalCoilApi() 
    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.

    • Method Summary

      Modifier and Type Method Description
      abstract Unit close() Close the snapshot to allow editing.
      abstract DiskCache.Editor closeAndOpenEditor() Close the snapshot and call openEditor for this entry atomically.
      abstract DiskCache.Editor closeAndEdit()
      abstract Path getMetadata() Get the metadata file path for this entry.
      abstract Path getData() Get the data file path for this entry.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait