Skip to content

fix: allow passing redis options#66

Merged
jmcdo29 merged 3 commits into
jmcdo29:mainfrom
alko89:fix/redis-options
Feb 3, 2026
Merged

fix: allow passing redis options#66
jmcdo29 merged 3 commits into
jmcdo29:mainfrom
alko89:fix/redis-options

Conversation

@alko89

@alko89 alko89 commented Aug 27, 2025

Copy link
Copy Markdown
Contributor

Add optional options to be passed when creating a new instance with URL.

This is useful when you want to create a connection with some custom options. For example fly io requires usage of IPv6:

ThrottlerModule.forRoot({
  throttlers: [{ limit: 10, ttl: seconds(1) }],
  storage: new ThrottlerStorageRedisService(redisUrl, { family: 6 }),
}),

@changeset-bot

changeset-bot Bot commented Aug 27, 2025

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 9871701

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@nest-lab/throttler-storage-redis Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@jmcdo29

jmcdo29 commented Feb 3, 2026

Copy link
Copy Markdown
Owner

Apologies for the delay, the second half of 2025 was not kind me.

This looks like a nice feature to add, can you add a changeset for minor via pnpm changeset and following the wizard in the terminal?

@alko89

alko89 commented Feb 3, 2026

Copy link
Copy Markdown
Contributor Author

@jmcdo29 I've added it. Is that what you meant?

@jmcdo29

jmcdo29 commented Feb 3, 2026

Copy link
Copy Markdown
Owner

Perfect! I'll be getting that added in and merged later today

@jmcdo29 jmcdo29 merged commit ddb30ae into jmcdo29:main Feb 3, 2026
1 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants