Skip to content

Martik2002/RedisCacheImplementation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RedisCacheImplementation

This project demonstrates how to implement a basic Redis-based cache service in ASP.NET Core using StackExchange.Redis.


🚀 Features

  • Connect to Redis using StackExchange.Redis
  • Generic cache service with GetAsync, SetAsync, and RemoveAsync methods
  • Easy integration into any .NET Core application
  • Configuration from appsettings.json

📦 Clone the Repository

git clone https://github.com/Martik2002/RedisCacheImplementation.git
cd RedisCacheImplementation

🐳 How to Run Redis using Docker

To use the Redis cache in this project, you need to have a Redis server running. The easiest way is to run it in a Docker container.

📥 1. Install Docker

If you haven't already, download and install Docker from:
👉 https://www.docker.com/products/docker-desktop


▶️ 2. Run Redis with Docker

Run the following command in your terminal or PowerShell:

docker run -d --name redis-cache -p 6379:6379 redis

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages