通过


IBotStorage interface

UniversalCallBot 使用的可替换存储系统。

方法

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

从存储中读取数据。

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

将数据写入存储。

方法详细信息

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

从存储中读取数据。

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

参数

callback

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

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

将数据写入存储。

function saveData(context: IBotStorageContext, data: IBotStorageData, callback?: (err: Error) => void)

参数

callback

(err: Error) => void