Constructor
new Storage(app)
- Source:
Parameters:
Name | Type | Description |
---|---|---|
app |
object | egg's app |
Members
app
- Source:
egg 的 app 对象,通过它来调用相关的其他资源
Methods
(async) deleteKey(egg's, key)
- Source:
删除指定 key 的值
Parameters:
Name | Type | Description |
---|---|---|
egg's |
object | ctx |
key |
string | number |
(async) getKey(egg's, key) → {object}
- Source:
设获取指定 key 的值
Parameters:
Name | Type | Description |
---|---|---|
egg's |
object | ctx |
key |
string | number |
Returns:
- Type
- object
(async) setKey(egg's, key, value)
- Source:
设置指定 key 的值
Parameters:
Name | Type | Description |
---|---|---|
egg's |
object | ctx |
key |
string | number | |
value |
object |