提交 9c241734 编写于 作者: L li_juntao

修改system.storage文档描述

Signed-off-by: Nli_juntao <lijuntao9@huawei.com>
上级 94859212
...@@ -19,7 +19,7 @@ import storage from '@system.storage'; ...@@ -19,7 +19,7 @@ import storage from '@system.storage';
get(Object): void get(Object): void
通过key读取缓存中存储的value 通过索引读取缓存中存储的值
**系统能力:** SystemCapability.DistributedDataManager.Preferences.Core **系统能力:** SystemCapability.DistributedDataManager.Preferences.Core
...@@ -29,7 +29,7 @@ get(Object): void ...@@ -29,7 +29,7 @@ get(Object): void
| -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- |
| key | string | 是 | 内容索引。 | | key | string | 是 | 内容索引。 |
| default | string | 否 | key不存在则返回的默认值。 | | default | string | 否 | key不存在则返回的默认值。 |
| success | Function | 否 | 接口调用成功的回调函数,返回key对应的value。 | | success | Function | 否 | 接口调用成功的回调函数,data为返回key对应的value。 |
| fail | Function | 否 | 接口调用失败的回调函数,data为错误信息,code为错误码。 | | fail | Function | 否 | 接口调用失败的回调函数,data为错误信息,code为错误码。 |
| complete | Function | 否 | 接口调用结束的回调函数。 | | complete | Function | 否 | 接口调用结束的回调函数。 |
...@@ -59,7 +59,7 @@ export default { ...@@ -59,7 +59,7 @@ export default {
set(Object): void set(Object): void
修改缓存中key对应的value 修改缓存中索引对应的值
**系统能力:** SystemCapability.DistributedDataManager.Preferences.Core **系统能力:** SystemCapability.DistributedDataManager.Preferences.Core
...@@ -67,7 +67,7 @@ set(Object): void ...@@ -67,7 +67,7 @@ set(Object): void
| 参数名 | 类型 | 必填 | 说明 | | 参数名 | 类型 | 必填 | 说明 |
| -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- |
| key | string | 是 | 要修改的存储内容的索引。 | | key | string | 是 | 要修改的存储的索引。 |
| value | string | 是 | 新值。最大长度128。 | | value | string | 是 | 新值。最大长度128。 |
| success | Function | 否 | 接口调用成功的回调函数。 | | success | Function | 否 | 接口调用成功的回调函数。 |
| fail | Function | 否 | 接口调用失败的回调函数,data为错误信息,code为错误码。 | | fail | Function | 否 | 接口调用失败的回调函数,data为错误信息,code为错误码。 |
...@@ -97,7 +97,7 @@ export default { ...@@ -97,7 +97,7 @@ export default {
clear(Object): void clear(Object): void
清空缓存中存储的key-value键值对。 清空缓存中存储的键值对。
**系统能力:** SystemCapability.DistributedDataManager.Preferences.Core **系统能力:** SystemCapability.DistributedDataManager.Preferences.Core
...@@ -131,7 +131,7 @@ export default { ...@@ -131,7 +131,7 @@ export default {
delete(Object): void delete(Object): void
删除缓存中对应的key-value键值对。 删除缓存中对应的键值对。
**系统能力:** SystemCapability.DistributedDataManager.Preferences.Core **系统能力:** SystemCapability.DistributedDataManager.Preferences.Core
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册