Class

SimpleFsStorageProvider

SimpleFsStorageProvider#SimpleFsStorageProvider(filename, trackTransactionsInMemory, maxInMemoryTransactions)

Constructor

# new SimpleFsStorageProvider(filename, trackTransactionsInMemory, maxInMemoryTransactions)

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

View Source storage/SimpleFsStorageProvider.ts, line 142