reiugit / CacheAsidePatternExampleWithRedis

Cache-Aside Pattern example using Redis.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cache-Aside Pattern example using Redis

This example uses 'StackExchangeRedis' as an implementation of IDistributedCache.

Topics:

  • Adding StackExchangeRedisCache to DI Container
  • Injecting IDistributedCache into endpoint
  • Usage of 'IDistributedCache.GetString(key)'
  • Usage of 'IDistributedCache.SetString(key, string, CacheOptions)'
  • Expiration/Eviction

This can be used to cache serialized objects in the form of json strings.

About

Cache-Aside Pattern example using Redis.


Languages

Language:C# 100.0%