Cashew.Adapters.CacheManager
package. Its aim is to focus on the HTTP part of caching and not worrying about how stuff is stored, meaning no half-arsed cache implementations!Type | Out of the box? |
---|---|
Dictionary | Yes* |
System.Runtime.Caching.MemoryCache | Yes* |
Microsoft.Extensions.Caching.Memory | Yes* |
Redis | Yes* |
Memcached | Yes* |
Couchbase | Yes* |
Custom | No, but it's super easy to implement your own. |
Cashew.Adapters.CacheManager
Header | Aka |
---|---|
max-age | 'I don't want cached responses older than this' |
s-maxage | 'I don't want cached responses older than this' |
max-stale | 'Stale responses are OK for this long' |
min-fresh | 'The response has to still be fresh for at least this long' |
no-cache | 'You must validate the cached response with the server |
no-store | 'DO NOT CACHE THIS OR I WILL MAKE YOUR LIFE MISERABLE!' |
only-if-cached | 'I only want a response if it's cached' |
must-revalidate | 'You MUST revalidate stale responses' |
proxy-revalidate | 'You MUST revalidate stale responses' |
Feature | Quickstart | In-depth |
---|---|---|
Use any cache store | Link | Wiki |
Decide how cache keys are created | Link | Wiki |
Decide which status codes are cacheable | Link | Wiki |
myrepo
(or whatever you wish, we’ll delete this soon anyway).https://github.com/jennybc/myrepo.git
.myrepo
, which coincides with the GitHub repo name.~/tmp
.README.md
file from GitHub. Look in RStudio’s file browser pane for the README.md
file.README.md
file, e.g., by adding the line “This is a line from RStudio”. Save your changes.README.md
.