What is the best practise for implementing caching strategy to retrieve category data in an E-commerce app in NestJS and Redis?
I’m developing an e-commerce application using NestJS and Prisma with PostgreSQL and have a requirement to cache category data globally to improve performance, retrieving the data immediately. I want to use Redis for caching, and I’m considering implementing a scheduled job to refresh the cache daily in a certain period like midnight or something.