다음을 통해 공유


MemoryBotStorage class

사용자 & 세션 상태 데이터를 저장하기 위한 메모리 스토리지 구현의 기본값입니다.

메서드

deleteData(IBotStorageContext)

지정된 컨텍스트에 대한 메모리 내 데이터를 삭제합니다.

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

지정된 컨텍스트에 대한 메모리의 데이터를 반환합니다.

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

지정된 컨텍스트의 메모리에 데이터를 저장합니다.

메서드 세부 정보

deleteData(IBotStorageContext)

지정된 컨텍스트에 대한 메모리 내 데이터를 삭제합니다.

function deleteData(context: IBotStorageContext)

매개 변수

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