SnapshotReader

trait SnapshotReader[F[_], S]
class Object
trait Matchable
class Any
trait SnapshotStore[F, S]

Value members

Abstract 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

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