1e41f4b71Sopenharmony_ci# Storage Switching
2e41f4b71Sopenharmony_ci
3e41f4b71Sopenharmony_ci
4e41f4b71Sopenharmony_ci| API in the FA Model| Corresponding .d.ts File in the Stage Model| Corresponding API in the Stage Model|
5e41f4b71Sopenharmony_ci| -------- | -------- | -------- |
6e41f4b71Sopenharmony_ci| GetStorageOptions | There is no corresponding API in the stage model.| The stage model uses **Prefereces** to replace **Storage** and has redesigned the input parameters.|
7e41f4b71Sopenharmony_ci| SetStorageOptions | There is no corresponding API in the stage model.| The stage model uses **Prefereces** to replace **Storage** and has redesigned the input parameters.|
8e41f4b71Sopenharmony_ci| ClearStorageOptions | There is no corresponding API in the stage model.| The stage model uses **Prefereces** to replace **Storage** and has redesigned the input parameters.|
9e41f4b71Sopenharmony_ci| DeleteStorageOptions | There is no corresponding API in the stage model.| The stage model uses **Prefereces** to replace **Storage** and has redesigned the input parameters.|
10e41f4b71Sopenharmony_ci| [static get(options: GetStorageOptions): void;](../reference/apis-arkdata/js-apis-system-storage.md#storageget) | \@ohos.data.preferences.d.ts | [get(key: string, defValue: ValueType, callback: AsyncCallback&lt;ValueType&gt;): void;](../reference/apis-arkdata/js-apis-data-preferences.md#get)<br>[get(key: string, defValue: ValueType): Promise&lt;ValueType&gt;;](../reference/apis-arkdata/js-apis-data-preferences.md#get-1) |
11e41f4b71Sopenharmony_ci| [static set(options: SetStorageOptions): void;](../reference/apis-arkdata/js-apis-system-storage.md#storageset) | \@ohos.data.preferences.d.ts | [put(key: string, value: ValueType, callback: AsyncCallback&lt;void&gt;): void;](../reference/apis-arkdata/js-apis-data-preferences.md#put)<br>[put(key: string, value: ValueType): Promise&lt;void&gt;;](../reference/apis-arkdata/js-apis-data-preferences.md#put-1) |
12e41f4b71Sopenharmony_ci| [static clear(options?: ClearStorageOptions): void;](../reference/apis-arkdata/js-apis-system-storage.md#storageclear) | \@ohos.data.preferences.d.ts | [clear(callback: AsyncCallback&lt;void&gt;): void;](../reference/apis-arkdata/js-apis-data-preferences.md#clear)<br>[clear(): Promise&lt;void&gt;;](../reference/apis-arkdata/js-apis-data-preferences.md#clear-1) |
13e41f4b71Sopenharmony_ci| [static delete(options: DeleteStorageOptions): void;](../reference/apis-arkdata/js-apis-system-storage.md#storagedelete) | \@ohos.data.preferences.d.ts | [delete(key: string, callback: AsyncCallback&lt;void&gt;): void;](../reference/apis-arkdata/js-apis-data-preferences.md#delete)<br>[delete(key: string): Promise&lt;void&gt;;](../reference/apis-arkdata/js-apis-data-preferences.md#delete-1) |
14e41f4b71Sopenharmony_ci
15e41f4b71Sopenharmony_ci <!--no_check-->