Baoyuantop commented on issue #13079:
URL: https://github.com/apache/apisix/issues/13079#issuecomment-4020711694

   The limit-count plugin stores remaining quota in Redis, not consumed count. 
See the Redis Lua script in apisix/plugins/limit-count/limit-count-redis.lua 
(lines 32-39): on new window it sets key = limit - cost, on subsequent requests 
it decrements via INCRBY key (0 - cost). The X-RateLimit-Remaining header 
directly exposes this value. This is intentional design, documented in our docs 
as 'the remaining quota'. Closing as this is working as expected.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to