Cache your SQL queries with Redis in C#

1 · Twilio · Feb. 13, 2023, 11:41 a.m.
As fast and optimized as your database is, there are times when a cache will boost your performance, or you may want to reduce the load on your database. In this post, you will use Redis in combination with a traditional Microsoft SQL (MSSQL) Server. When looking up data, you will first query Redis, if the data is there, you're done. If it is not there, you will then query the database. You will run Redis and MSSQL Server in Docker containers. The application querying the data will be a .NET 7 ...