useMemoryStore
Gets a memory store manager.
Syntax
Parameters
| Name | Type | Description |
|---|---|---|
name | string | The name of the memory store. |
scope | string | The scope of the memory store. (default: global) |
Returns
MemoryStoreManager- The memory store manager.
Example
const store = useMemoryStore('scores');
Available on: Client