Directus / @directus/memory / index / LimiterRedis
Class: LimiterRedis ​
Implements ​
Constructors ​
new LimiterRedis() ​
new LimiterRedis(
config
):LimiterRedis
Parameters ​
• config: Omit
<LimiterConfigRedis
, "type"
>
Returns ​
Defined in ​
packages/memory/src/limiter/lib/redis.ts:10
Methods ​
consume() ​
consume(
key
):Promise
<void
>
Consume a point for the given key
Parameters ​
• key: string
IP address, URL path, or any other string
Returns ​
Promise
<void
>
Implementation of ​
Defined in ​
packages/memory/src/limiter/lib/redis.ts:21
delete() ​
delete(
key
):Promise
<void
>
Delete the tracked information for a given key
Parameters ​
• key: string
IP address, URL path, or any other string
Returns ​
Promise
<void
>