ThrottlerStorageService

  
class ThrottlerStorageService implements ThrottlerStorage, OnApplicationShutdown {
  storage: Map<string, ThrottlerStorageOptions>
  increment(key: string, ttl: number, limit: number, blockDuration: number, throttlerName: string): Promise<ThrottlerStorageRecord>
  onApplicationShutdown()
}

Properties

Property Description
storage: Map<string, ThrottlerStorageOptions> Read-only.

Methods

increment()


increment(key: string, ttl: number, limit: number, blockDuration: number, throttlerName: string): Promise<ThrottlerStorageRecord>

Parameters

Option Type Description
key string
ttl number
limit number
blockDuration number
throttlerName string

Returns

Promise<ThrottlerStorageRecord>

onApplicationShutdown()


onApplicationShutdown()

Parameters

There are no parameters.