-
@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 Unitclose()Close the snapshot to allow editing. abstract DiskCache.EditorcloseAndOpenEditor()Close the snapshot and call openEditor for this entry atomically. abstract DiskCache.EditorcloseAndEdit()abstract PathgetMetadata()Get the metadata file path for this entry. abstract PathgetData()Get the data file path for this entry. -
-
Method Detail
-
closeAndOpenEditor
abstract DiskCache.Editor closeAndOpenEditor()
Close the snapshot and call openEditor for this entry atomically.
-
closeAndEdit
@Deprecated(message = Renamed to 'closeAndOpenEditor'., replaceWith = @ReplaceWith(imports = {}, expression = closeAndOpenEditor())) abstract DiskCache.Editor closeAndEdit()
-
getMetadata
abstract Path getMetadata()
Get the metadata file path for this entry.
-
getData
abstract Path getData()
Get the data file path for this entry.
-
-
-
-