SnapshotStore

trait SnapshotStore[F[_], S] extends SnapshotReader[F, S]
Companion:
object
trait SnapshotReader[F, S]
class Object
trait Matchable
class Any

Value members

Abstract methods

def put(id: StreamId, state: Valid[S]): F[Unit]

Inherited methods

def get(id: StreamId): F[Option[Valid[S]]]

Reads snapshot

Reads snapshot

this might involve reading from disk and/or provide the latest version available due to buffering for instance

Value parameters:
id

Stream id to read snapshot for

Returns:

optional snapshot for a folded aggregate

Inherited from:
SnapshotReader
def getFast(id: StreamId): F[Option[Valid[S]]]

Reads snapshot from a fast access storage or returns None if not accessible from fast storage/cache. it will always return last version of cache or None.

Reads snapshot from a fast access storage or returns None if not accessible from fast storage/cache. it will always return last version of cache or None.

Value parameters:
id

Stream id to read snapshot for

Returns:

optional snapshot for a folded aggregate

Inherited from:
SnapshotReader