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 edit.

    • Method Summary

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

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • close

         abstract Unit close()

        Close the snapshot to allow editing.

      • getMetadata

         abstract Path getMetadata()

        Get the metadata for this entry.

      • getData

         abstract Path getData()

        Get the data for this entry.