Retrieves the current rate limiter state for a given key.
The unique identifier for the rate limiter.
Returns the rate limiter state if found, otherwise null.
The transaction method runs the fn function inside a transaction.
The fn function is given a IRateLimiterStorageAdapterTransaction object.
The
IRateLimiterStorageAdaptercontract defines a way for storing rate limiter state independent of the underlying technology. This contract simplifies the implementation of rate limiter adapters with CRUD-based databases, such as SQL databases and ORMs like TypeOrm and MikroOrm.IMPORT_PATH:
"@daiso-tech/core/rate-limiter/contracts"