spacewander commented on a change in pull request #3910:
URL: https://github.com/apache/apisix/pull/3910#discussion_r602062170



##########
File path: apisix/plugins/limit-count/limit-count-redis-cluster.lua
##########
@@ -32,7 +32,7 @@ local mt = {
 
 local function new_redis_cluster(conf)
     local config = {
-        name = "apisix-redis-cluster",
+        name = "apisix-redis-cluster-" .. conf.name,

Review comment:
       I read through the `resty.rediscluster`. Look like this library uses a 
module-level `slot_cache`, and the key is the `config.name`.
   
   So it is no doubted that different configurations with the same name will 
collide.
   
   What about using `"apisix-redis-cluster-" .. tostring(conf)` directly?
   Better to add a comment about this change as future maintainer may not read 
through the library. 




-- 
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:
[email protected]


Reply via email to