Skip to content

ASP.NET Core API for testing Cosmos as a distributed cache.

Notifications You must be signed in to change notification settings

spoland/cosmos-distributed-cache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cosmos Distributed Cache

This is a simple ASP.NET Core API being used to test using Cosmos as a distributed cache. Packages and resources being used include:

Setup

To run the API locally, you'll need to install the Cosmos DB emulator, which you can get here.

Alternatively - set up a real Cosmos DB instance and update appsettings.Development.json accordingly 😎

Testing

There are two endpoints available:

  • /api/posts
  • /api/posts/{id:int}

Initial requests will call out to an external endpoint for data and there responses will be cached. Subsequent requests will be retrieved from cache, which expires after 1 minute.

durations

About

ASP.NET Core API for testing Cosmos as a distributed cache.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages