You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/04/25 08:02:58 UTC

[GitHub] [apisix] Firstsawyou commented on issue #4124: request help: how to get current limit count from redis cache?

Firstsawyou commented on issue #4124:
URL: https://github.com/apache/apisix/issues/4124#issuecomment-826278553


   > 1. If I use redis to store limit count cache, how to get the current value of count by admin? Is there an admin api interface to get this or do I need to get it from redis by myself?
   
   The limit count cache value cannot be obtained through admin api, can you refer to the method here to obtain it.
   
   https://github.com/apache/apisix/blob/681b0bda1625c2d9030489e0c5ef42f688c65156/apisix/plugins/limit-count/limit-count-redis-cluster.lua#L85-L101
   
   https://github.com/apache/apisix/blob/681b0bda1625c2d9030489e0c5ef42f688c65156/apisix/plugins/limit-count.lua#L169
   
   >2.How is the key value naming rule of limit count defined?
   
   This cannot be customized, it is generated according to certain rules.
   


-- 
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org