Class

SimpleFsStorageProvider

SimpleFsStorageProvider(filename, trackTransactionsInMemory, maxInMemoryTransactions)

A storage provider that uses the disk to store information.
Constructor

# new SimpleFsStorageProvider(filename, trackTransactionsInMemory, maxInMemoryTransactions)

Creates a new simple file system storage provider.
Parameters:
Name Type Default Description
filename string The file name (typically 'storage.json') to store data within.
trackTransactionsInMemory boolean true True (default) to track all received appservice transactions rather than on disk.
maxInMemoryTransactions int 20 The maximum number of transactions to hold in memory before rotating the oldest out. Defaults to 20.

View Source storage/SimpleFsStorageProvider.ts, line 11

Classes

SimpleFsStorageProvider
SimpleFsStorageProvider