get

abstract suspend fun get(key: StateKey): V?

The state of the aggregate key names, null when it does not exist or is deleted.

Throws

when the cache does not hold it and its owner cannot be read now, or the cache's backend fails: a read that may fall back catches exactly this.


open suspend fun get(tenantId: String, id: String): V?

The state of the aggregate id of tenantId, null when it does not exist or is deleted.

Throws