
A simple demo of how you can implement Azure Redis Cache in a .NET Core Web API with the repository pattern.
Report a Bug or Request a Feature
·
Read the full in-depth article about this project
Table of Contents
This is a simple API project to demonstrate how you can implement a distributed Redis cache hosted at Azure into your .NET Core Web API. You will be able to replicate the logic using either .NET 6 or .NET 7.
Why should you use a cache like Redis?
- Response time is reduced drastically
- Your database will be able to breath and serve requests other than just GET operations
- Your clients will be happy 😄
The API demo is built using the following technologies and tools.
- Visual Studio 2022
- .NET 7
- Azure Cache for Redis
- Microsoft SQL Server
- Entity Framework Core
- C#
To get started developing further on the Azure Redis API service, you have to clone the project to your local computer.
- Visual Studio 2022
- .NET 7 SDK
- Local installation of Microsoft SQL Server (Express, Developer, etc...)
- An Azure Account with an Active Subscription
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request