SmartStorageAbility.setAll
版本要求:
@ray-js/panel-sdk≥1.0.0
方法签名
SmartStorageAbility.setAll(values: Record<string, any>, timestamp?: number)描述
批量存储多个键值对
参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
values | Record<string, any> | 是 | 要存储的键值对集合,最多 30 个 key |
timestamp | number | 否 | 时间戳,默认为当前时间 |
返回值
类型:Promise<unknown>
存储操作结果