MemoryBotStorage class

Default in memory storage implementation for storing user & session state data.

Methods

deleteData(IBotStorageContext)

Deletes in-memory data for the given context.

getData(IBotStorageContext, (err: Error, data: IBotStorageData) => void)

Returns data from memory for the given context.

saveData(IBotStorageContext, IBotStorageData, (err: Error) => void)

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

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

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

callback

(err: Error) => void