API reference

Every public class, method, and event in @codexo/exojs. Generated from source.

C

classMemoryStore

@codexo/exojs / resources / stable

In-memory KeyValueStore backed by a `Map`. Holds values **by reference** — no cloning, no serialization — so it accepts any value but does not persist across sessions and does not isolate the caller from later mutation of a stored object. Ideal for tests and ephemeral data, and as a drop-in store when persistence is not needed.

0
props
5
methods
0
events
Import
import { MemoryStore } from '@codexo/exojs'

In-memory KeyValueStore backed by a `Map`. Holds values **by reference** — no cloning, no serialization — so it accepts any value but does not persist across sessions and does not isolate the caller from later mutation of a stored object. Ideal for tests and ephemeral data, and as a drop-in store when persistence is not needed.

Constructors 1
new(): MemoryStore
Methods 5
clear(): Promise<boolean>
delete(key: string): Promise<boolean>
get(key: string): Promise<T | null>
has(key: string): Promise<boolean>
set(key: string, value: unknown): Promise<void>
Source