---
name: "getStorageInfoSync"
mode: "kit"
versionRequirements:
  - { name: "BaseKit", version: "3.30.1" }
  - { name: "@ray-js/ray", version: "1.7.60" }
platform:
  - "iOS"
  - "Android"
---

## getStorageInfoSync

> [VERSION] BaseKit >= 3.30.1 | @ray-js/ray >= 1.7.60

> [PLATFORM] iOS, Android

### Description

Asynchronously obtain information about the current storage

### Parameters

None


### Examples

#### Demo

```tsx
import { getStorageInfo } from '@ray-js/ray'

// Get current storage info: all keys, used size, limit size (KB)
getStorageInfo({
  success: data => console.log("keys:", data.keys, "used:", data.currentSize, "limit:", data.limitSize),
  fail: error => console.error(error),
});
```
