InMemoryDurableStore

An in-process, non-durable DurableStore for tests and ephemeral scenarios.

Not crash-safe — all state is lost on process exit. Use only in tests or where persistence across restarts is explicitly not needed.

Thread-safe via a reentrant lock (kuilt policy: explicit primitives, not dispatcher confinement).

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open suspend override fun delete(key: StoreKey)

Remove the entry for key. No-op if the key is absent.

Link copied to clipboard
open suspend override fun read(key: StoreKey): ByteArray?

Read the bytes stored under key, or null if the key has never been written.

Link copied to clipboard
open suspend override fun write(key: StoreKey, bytes: ByteArray)

Durably write bytes under key, overwriting any previous value.