Skip to main content

Module memory

Module memory 

Source
Expand description

In-memory session storage — ephemeral, test-safe, fast.

InMemorySessionStorage stores keypairs in a HashMap in process memory. Data is lost when the process exits. Suitable for testing, short-lived CLI invocations, and scenarios where persistence is unnecessary.

§Security

Private keys live in the process heap for the duration of the session. This is NOT suitable for production use — use super::EncryptedFileSessionStorage for persistent, encrypted session storage.

Structs§

InMemorySessionStorage
Ephemeral session storage backed by an in-memory HashMap.