save

abstract suspend fun save(snapshot: SnapshotRecord): Boolean

Stores snapshot if the store holds none for its ref, or holds a lower version of the same or a lower state revision; returns whether it was written. A snapshot of the same or a lower version is not written and is not an error. One of a higher version refused because the stored one is of a higher state revision marks the stored one stale (SnapshotRebuildStore.markStale) when the store has rebuilds.