Directus / @directus/memory / index / Limiter
Interface: Limiter ​
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
>
Defined in ​
packages/memory/src/limiter/types/class.ts:7
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
>