-
-
Notifications
You must be signed in to change notification settings - Fork 163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(redis): add customIncrTtlLuaScript option #261
feat(redis): add customIncrTtlLuaScript option #261
Conversation
pls @animir when you get some time |
@roggervalf Hi. As I see you would like to double TTL of a key whenever consumes more than |
hey @animir, yes but more than double it, it would take how many point in batches are there to calculate the next delay, because when you already have the first batch of points, those are good to have the regular delay but for the second batch they will reach the same rate limit as the first batch came first |
so the delay for the next points depending on which batch they are included need to have extra delays |
pls @animir let me know if you have questions about it |
@roggervalf I do have doubts about bringing this customization to the project. Could you implement it a different way? I suggest to consider settings custom Lua script from outside? |
sure I can do it |
it should be ready now, pls when you get some time @animir |
@roggervalf Published in |
Allow providing a custom incrTtlLuaScript