KV — 键值存储

class KV(...)

使用示例::(python)

1
2
3
# coding=utf-8
# This is a sample Python script.
from system import KV

操作函数

setStorageSync(key, value)

新增/更新 key-value

getStorageSync(key)

读取KV中的值

removeStorageSync(key)

清除key-value值