Snapshot

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

Properties

Link copied to clipboard
abstract val data: Path

Get the data file path for this entry.

Link copied to clipboard
abstract val metadata: Path

Get the metadata file path 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.