MemoryBotStorage class
儲存使用者 & 工作階段狀態資料之內存記憶體實作中的預設值。
方法
| delete |
刪除指定內容的記憶體內部數據。 |
| get |
從指定內容的記憶體傳回數據。 |
| save |
將資料儲存至指定內容的記憶體。 |
方法詳細資料
deleteData(IBotStorageContext)
getData(IBotStorageContext, (err: Error, data: IBotStorageData) => void)
從指定內容的記憶體傳回數據。
function getData(context: IBotStorageContext, callback: (err: Error, data: IBotStorageData) => void)
參數
- context
- IBotStorageContext
- callback
-
(err: Error, data: IBotStorageData) => void
saveData(IBotStorageContext, IBotStorageData, (err: Error) => void)
將資料儲存至指定內容的記憶體。
function saveData(context: IBotStorageContext, data: IBotStorageData, callback?: (err: Error) => void)
參數
- context
- IBotStorageContext
- data
- IBotStorageData
- callback
-
(err: Error) => void