The response speed of the project is relatively high, so redis cache is used for all the projects, which also leads to cache failure. It is necessary to analyze the memory usage of various keys for optimization.
Although redisclient can easily operate redis, it can’t view the memory occupied by the corresponding key, and can’t make statistical analysis on the memory occupied by the key. I have a brief understanding of the open-source middleware on the market that can view the occupancy of keys in redis, and finally decided to use redis data review (RDR) to view the occupancy of keys in the system (RDR is a visualization middleware developed by snowball company with reference to the redis RDB tool open-source project, and it is said that its performance is slightly higher than that of redis RDB tool)
.\rdr-windows.exe show -p 924 dump.rdb .\rdr- windows.exe Show - P port number persistent data file.rdb
4. Visit the URL to view the report output