InMemoryExtractedValueStore
Default ExtractedValueStore: process memory, lost on restart.
The composite key uses NUL as the separator. Every other candidate (:, /,
|) can occur inside a userId, which would let two distinct owners collide on
one map key — the exact class of defect the block stores still carry.
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new InMemoryExtractedValueStore(): InMemoryExtractedValueStore;Returns
Section titled “Returns”InMemoryExtractedValueStore
Methods
Section titled “Methods”delete()
Section titled “delete()”delete( scope, owner,slug): Promise<void>;No-op when missing.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
|
|
|
|
|
|
|
|
|
Returns
Section titled “Returns”Promise<void>
Implementation of
Section titled “Implementation of”load()
Section titled “load()”load( scope, owner, slug): Promise< | ExtractedValue<unknown>| null>;Returns null when nothing has been extracted for this slug yet. Never throws on missing.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
|
|
|
|
|
|
|
|
|
Returns
Section titled “Returns”Promise<
| ExtractedValue<unknown>
| null>
Implementation of
Section titled “Implementation of”save()
Section titled “save()”save(value, owner): Promise<void>;Replaces any existing value for (scope, owner, slug).
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
|
|
|
|
|
|
Returns
Section titled “Returns”Promise<void>