MemoryDocStore is an in-memory DocStore implementation. It holds the
persisted envelopes in a Map for the lifetime of the process and carries
no external dependency. It is the default store used when a durable backend
is not configured, and it doubles as a test double for the persistence loop.
Each stored value is defensively copied on both save and load so a
caller mutating the returned buffer cannot corrupt the stored snapshot.
MemoryDocStoreis an in-memoryDocStoreimplementation. It holds the persisted envelopes in aMapfor the lifetime of the process and carries no external dependency. It is the default store used when a durable backend is not configured, and it doubles as a test double for the persistence loop.Each stored value is defensively copied on both
saveandloadso a caller mutating the returned buffer cannot corrupt the stored snapshot.