-
public interface DiskCache.EditorEdits 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.
-
-
Method Summary
Modifier and Type Method Description abstract Unitcommit()Commit the edit so the changes are visible to readers. abstract DiskCache.SnapshotcommitAndGet()Commit the edit and open a new Snapshot atomically. abstract Unitabort()Abort the edit. abstract PathgetMetadata()Get the metadata for this entry. abstract PathgetData()Get the data for this entry. -
-
Method Detail
-
commitAndGet
abstract DiskCache.Snapshot commitAndGet()
Commit the edit and open a new Snapshot atomically.
-
getMetadata
abstract Path getMetadata()
Get the metadata for this entry.
-
getData
abstract Path getData()
Get the data for this entry.
-
-
-
-