sparkling-storage
Key-value storage helper APIs for Lynx/JS.
Install
Exports
setItem(params, callback)
Set an item in storage.
- Request:
{ key: string; data: any; biz?: string; validDuration?: number } - Response:
{ code: number; msg: string; data?: any }
Example:
getItem(params, callback)
Get an item from storage.
- Request:
{ key: string; biz?: string } - Response:
{ code: number; msg: string; data?: { data?: any } }
Example:
Native method names
This package calls:
storage.setItemstorage.getItem
Your host app must register native implementations for these methods. See Sparkling Method SDK / iOS.

