UNPKG

@envelop/rate-limiter

Version:

This plugins uses [`graphql-rate-limit`](https://github.com/teamplanes/graphql-rate-limit#readme) in order to limit the rate of calling queries and mutations.

12 lines (11 loc) 476 B
import type { Store } from './store.js'; import type { Identity } from './types.js'; declare class RedisStore implements Store { store: any; private readonly nameSpacedKeyPrefix; constructor(redisStoreInstance: unknown); setForIdentity(identity: Identity, timestamps: readonly number[], windowMs?: number): Promise<void>; getForIdentity(identity: Identity): Promise<readonly number[]>; private readonly generateNamedSpacedKey; } export { RedisStore };