Methods
bootStrap(config)
- Source:
初始化Storage的数据
Parameters:
Name | Type | Description |
---|---|---|
config |
Object | {} |
clear()
- Source:
clear清除缓存
getItem(key) → {*|null}
- Source:
获取缓存 getItem
Parameters:
Name | Type | Description |
---|---|---|
key |
string | 缓存key |
Returns:
- Type
- * | null
removeItem(key)
- Source:
移除缓存 removeItem
Parameters:
Name | Type | Description |
---|---|---|
key |
string | 缓存key |
setItem(key, value)
- Source:
设置缓存 setItem
Parameters:
Name | Type | Description |
---|---|---|
key |
key | |
value |
value |