项目作者: angelitocsg

项目描述 :
Memory Cache and Distributed Cache
高级语言: C#
项目地址: git://github.com/angelitocsg/coding-live-007.git
创建时间: 2020-06-06T13:13:06Z
项目社区:https://github.com/angelitocsg/coding-live-007

开源协议:

下载


Memory Cache and Distributed Cache | Coding Live #007

Getting Started

These instructions is a part of a live coding video.

Prerequisites

Projects

Create a base folder CodingLive007.

Create the .gitignore file based on file https://github.com/github/gitignore/blob/master/VisualStudio.gitignore

Example Cached API

  1. dotnet new webapi --name CachedAPI
  2. dotnet add package Bogus
  3. dotnet add package Microsoft.Extensions.Caching.Redis
  1. docker volume create redis-data
  2. docker run --name live-redis -v redis-data:/data -p 6379:6379 -d redis redis-server --appendonly yes

Redis Commander

  1. npm install -g redis-commander
  2. redis-commander --redis-host docker.local

References

https://redis.io/

https://www.npmjs.com/package/redis-commander

https://aws.amazon.com/pt/elasticache/what-is-redis/

https://stackexchange.github.io/StackExchange.Redis/