Skip to content

fabio-sp/RedisOutputCacheDemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OutputCache Demo Application

This is a demo repository to show how to integrate .NET 7 OutputCaching middleware with Redis Cache. Please do not take it too seriously as it lacks proper resource locking mechanisms.

Prerequisites

Make sure you have an instance of Redis cache running locally.

If you have Docker installed on your server you can spin up a new Redis Docker Container

docker run -p 6379:6379 redis:7.0.4-alpine.

As Windows Redis Explorer during the demo I've used Another Redis Desktop Manager which can be easily installed via choco or winget.

If you want to switch to the FusionCache implementation of the IOutputCacheStore you can take a look to the FusionOutputCacheStore.cs file and the commented lines in Program.cs file. The FusionCache implementation uses Redis as a 2nd layer of caching.

About

Demo repository showing the integration between OutputCaching middleware and Redis Cache

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages