Snapshot

interface Snapshot : Closeable

A snapshot of the values for an entry.

IMPORTANT: You must only read metadata or data. Mutating either file can corrupt the disk cache. To modify the contents of those files, use edit.

Properties

Link copied to clipboard
abstract val data: Path

Get the data for this entry.

Link copied to clipboard
abstract val metadata: Path

Get the metadata for this entry.

Functions

Link copied to clipboard
abstract override fun close()

Close the snapshot to allow editing.

Link copied to clipboard

Close the snapshot and call openEditor for this entry atomically.