---
name: "SmartStorageAbility.setAll"
mode: "api"
versionRequirements:
  - { name: "@ray-js/panel-sdk", version: "1.0.0" }
title: "setAll"
---

## SmartStorageAbility.setAll

> [VERSION] @ray-js/panel-sdk >= 1.0.0

> 💡 Each serialized value can be up to 1024 characters; the values object can contain at most 30 keys.

### Description

Batch store multiple key-value pairs

### Parameters

`Params`

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `values` | `Record<string, any>` | Yes | Set of key-value pairs to store, up to 30 keys |
| `timestamp` | `number` | No | Timestamp, defaults to the current time |

### Return Value

Type: `Promise<unknown>`

Storage operation result

### Examples

#### Example

```typescript
await sdm.storage.setAll({
  brightness: 80,
  colorTemp: 4000,
  mode: 'white',
});
```
