Skip to main content

Function: addTransactionCapability()

addTransactionCapability(state, logger, __namedParameters): SignalKeyStoreWithTransaction

Defined in: src/Utils/auth-utils.ts:84

Adds DB like transaction capability (https://en.wikipedia.org/wiki/Database_transaction) to the SignalKeyStore, this allows batch read & write operations & improves the performance of the lib

Parameters

state

SignalKeyStore

the key store to apply this capability to

logger

ILogger

logger to log events

__namedParameters

TransactionCapabilityOptions

Returns

SignalKeyStoreWithTransaction

SignalKeyStore with transaction capability