Closed lemchen closed 4 years ago
You do not want to add any redis code to the controller. It's advisable to move the redis cache calls to the application layer within the MediatR implementations. It would be a cleaner fit.
Also, here is a post on Redis Caching - https://www.codewithmukesh.com/blog/redis-caching-in-aspnet-core/
Thanks for your suggestion
How to add redis caching support? It is just simplely add some redis code to Controller in webapi?