是否有一种编程方式可以通过一些 REST 或 Groovy API以编程方式获取keyspace_hits
和值?keyspace_miss
2 回答
You can usually get all the info you need from just connecting to the server with any redis client.
You can get all the info by using this command Info.
There is an interesting article here that the Author shows how to trace gets and sets and messing around with the redis source code.
There is some third party tools that lets you monitor redis a quick google search you give you a few like this one. (I am not endorsing them it is just an example).
There is also the monitor command in redis that shows you everything as it happens which you could make your own monitoring app.