This is nodejs code to demostrate how redis can be used as a cache to improve your application performance. This application demostrate that user is using some relation database like SQL server/mysql/mongodb etc and runs with performance challeges as database grows. After adding redis as cache layer it hows how performance is drastically imroved and without any additional code changes and change in application architecture.
On top of that I added analytics to capture querytime for mySQL and Redis, in RedisTimeseries module.
You can logic in your applications to use Redis as cache.
all the best.