Skip to content

Conversation

SGrondin
Copy link
Contributor

@SGrondin SGrondin commented Jan 27, 2019

Not ready for merging.

What this does is reuse limiters across plugin instantiations as long as their id option matches.

Bottleneck.Group is a cache for limiter instances, they're automatically deleted after timeout ms of inactivity (set to 2 minutes).

Important note: Right now, if the first instance of the plugin uses Redis, then all other instances will use it too even if they don't pass connection. And if the first .plugin() didn't use redis, then the other .plugin() will also not use it.

@SGrondin
Copy link
Contributor Author

SGrondin commented Feb 3, 2019

This is ready to merge 🎉

@SGrondin SGrondin mentioned this pull request Feb 3, 2019
15 tasks
@gr2m gr2m merged commit 769c1f2 into master Feb 4, 2019
@octokitbot
Copy link
Contributor

🎉 This PR is included in version 2.4.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@SGrondin SGrondin deleted the share-limiters branch May 9, 2019 13:18
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.

3 participants