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. |