-
@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 Unitclose()Close the snapshot to allow editing. abstract DiskCache.EditorcloseAndEdit()Close the snapshot and call edit for this entry atomically. abstract PathgetMetadata()Get the metadata for this entry. abstract PathgetData()Get the data for this entry. -
-
Method Detail
-
closeAndEdit
abstract DiskCache.Editor closeAndEdit()
Close the snapshot and call edit for this entry atomically.
-
getMetadata
abstract Path getMetadata()
Get the metadata for this entry.
-
getData
abstract Path getData()
Get the data for this entry.
-
-
-
-