API reference

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

C

classMemoryStore

@codexo/exojs / assets / 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.

Constructors1
new(): MemoryStore
Methods5
clear(): Promise<boolean>
Remove every entry owned by this store. Resolves true on success.
delete(key: string): Promise<boolean>
Remove the entry at key. Resolves true if one existed and was removed.
get(key: string): Promise<T | null>
Read the value at key, or null when absent.
has(key: string): Promise<boolean>
Whether an entry exists at key.
set(key: string, value: unknown): Promise<void>
Write value at key, replacing any existing entry.
Source