MemoryBotStorage class
Default in memory storage implementation for storing user & session state data.
Methods
delete |
Deletes in-memory data for the given context. |
get |
Returns data from memory for the given context. |
save |
Saves data to memory for the given context. |
Method Details
deleteData(IBotStorageContext)
Deletes in-memory data for the given context.
function deleteData(context: IBotStorageContext)
Parameters
- context
- IBotStorageContext
getData(IBotStorageContext, (err: Error, data: IBotStorageData) => void)
Returns data from memory for the given context.
function getData(context: IBotStorageContext, callback: (err: Error, data: IBotStorageData) => void)
Parameters
- context
- IBotStorageContext
- callback
-
(err: Error, data: IBotStorageData) => void
saveData(IBotStorageContext, IBotStorageData, (err: Error) => void)
Saves data to memory for the given context.
function saveData(context: IBotStorageContext, data: IBotStorageData, callback?: (err: Error) => void)
Parameters
- context
- IBotStorageContext
- data
- IBotStorageData
- callback
-
(err: Error) => void