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


   > > > 
![image](https://user-images.githubusercontent.com/3000843/116973686-7715a300-acef-11eb-9436-617d1982fbcb.png)
   > > > ps: this is a screenshot of redis key naming for consumer plugin 
`limit count` by `consumer_name `
   > > > **part 1**: common prefix
   > > > **part 2**: consumer username
   > > > **part 3**: ?
   > > > Q1: Is this part(**part 3**) a version attribute? Can you help find 
out where the key generation rules are in the source code?
   > > > Q2: If it is convenient for a third-party program to directly obtain 
the consumer's latest limit count value in redis, can we remove **part3** and 
only keep the latest version(**part1 + part2**)?
   > > 
   > > 
   > > That's right, the third part is the version of plugin configuration. 
Also, it's feasible to customize your key.
   > > Please see http://apisix.apache.org/docs/apisix/plugins/limit-count.
   > 
   > hi,@tokers
   > 
   > So can we remove the third part? Only keep the latest version (if 
possible, how to do it?). The version history of the data does not seem to be 
used in the future, unless it is used for fault tracking.
   
   Just like what I said above, you can customize the key.


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