Skip to Content
Anuma SDKReactInternalFunctionscreatePlatformCursorStore

createPlatformCursorStore

createPlatformCursorStore(storage: SyncKeyValueStore, keyPrefix: string): ExtractionCursorStore

Defined in: src/lib/memory/autoExtractWorker.ts:154 

Build an ExtractionCursorStore over a synchronous key/value store (e.g. the SDK’s PlatformStorage). Keys are namespaced by keyPrefix. Reads/writes are guarded so a store that throws (quota, private mode) can’t break extraction — the watermark just falls back to in-memory.

Parameters

ParameterTypeDefault value

storage

SyncKeyValueStore

undefined

keyPrefix

string

"anuma:mem:xcursor:"

Returns

ExtractionCursorStore

Last updated on