@tempots/dom

MemoryStore class

Represents a memory store that stores key-value pairs.

Signature:

declare class MemoryStore 

Properties

Property

Modifiers

Type

Description

getItem

readonly

(key: string) => string | null

Retrieves the value associated with the specified key from the memory store.

setItem

readonly

(key: string, value: string) => void

Sets the value associated with the specified key in the memory store.