Options
All
  • Public
  • Public/Protected
  • All
Menu

Class FileStorage

:package: botbuilder

A file based storage provider. Items will be persisted to a folder on disk.

Usage Example

const { FileStorage } = require('botbuilder');
const path = require('path');

const storage = new FileStorage(path.join(__dirname, './state'));

Hierarchy

  • FileStorage

Implements

  • Storage

Index

Constructors

constructor

Properties

Private pEnsureFolder

pEnsureFolder: Promise<void> | undefined

Protected path

path: string

Static nextTag

nextTag: number = 0

Methods

delete

  • delete(keys: string[]): Promise<void>

Private ensureFolder

  • ensureFolder(): Promise<void>

Private getFileName

  • getFileName(key: string): string

Private getFilePath

  • getFilePath(key: string): string

read

  • read(keys: string[]): Promise<StoreItems>

write

  • write(changes: StoreItems): Promise<void>

Generated using TypeDoc