You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 2, 2024. It is now read-only.
Good catch! This was added, but got lost due to a refactoring from last version. I've added it. You can now add prefixes again like so:
import{ThrottlerModule,seconds}from'@nestjs/throttler';import{ThrottlerStorageRedisService}from'nestjs-throttler-storage-redis';importRedisfrom'ioredis';
@Module({imports: [ThrottlerModule.forRoot({throttlers: [{limit: 5,ttl: seconds(60)}],// Below are possible options on how to configure the storage service.// redis objectstorage: newThrottlerStorageRedisService(newRedis({keyPrefix: 'local-')),// redis clustersstorage: newThrottlerStorageRedisService(newRedis.Cluster(nodes,{keyPrefix: 'cluster-'})),}),],})exportclassAppModule{}
configuring a
keyPrefix
inRedisOptions
doesnt seem to be supportedconfigure whatever you want as the
keyPrefix
:the redis key will still remain the same
The text was updated successfully, but these errors were encountered: