nestjs-graphql-rate-limit
Version:
Rate Limit module with Redis storage support for NestJS GraphQL APIs
12 lines • 569 B
TypeScript
import Redis from 'ioredis';
import { ThrottlerStorage } from '@nestjs/throttler';
export declare class ThrottlerStorageRedisService implements Omit<ThrottlerStorage, 'storage'> {
redis: Redis.Redis;
scanCount: number;
constructor(redis?: Redis.Redis, scanCount?: number);
constructor(options?: Redis.RedisOptions, scanCount?: number);
constructor(url?: string, scanCount?: number);
getRecord(key: string): Promise<number[]>;
addRecord(key: string, ttl: number): Promise<void>;
}
//# sourceMappingURL=throttler-storage-redis.service.d.ts.map