Change Redis counters manually

Hi, is it crazy idea to change the redis counters manually, for example if I hace certain endpoint in my api that I want the quota to go down faster so instead of consuming 1 request I want it to discount 10 requests. Is that possible ?

I think so. At least I know you can modify the keys in redis. So, I assume the implementation is the challenge. You can use the keys API to modify your quota but you have to be wary of race conditions.

Is there a reason you need to decrement the quota by 10 rather than specify the exact value and decrement by 1?

Let’s say I want to reduce the quote counter based on the type of request because all the request don’t have the same computational effort in the backend.