RFC 7234 Cache
Last updated
Was this helpful?
Last updated
Was this helpful?
Cache middleware implements http-caching RFC 7234. It's based on the HTTP cache library.
Have a look at the if you need more information.
This is a third-party plugin and isn't included by default. See the Building RoadRunner with Cache
section for more information.
Sets
compliant HTTP Cache.
REST API to purge the cache and list stored resources.
Builtin support for distributed cache.
Tag-based invalidation.
Partial GraphQL caching.
Configure multiple HTTP verbs to cache (especially for GraphQL).
Builtin timeout.
As it's based on the HTTP cache library we can use directly the roadrunner middleware implementation. We have to set the folder
property because this middleware is located in a subdirectory.
Available storages: In-memory/Filesystem
nutsdb
badger
(default one)
Distributed
etcd
olric
You can set each Souin configuration key under the http.cache
key. There is a configuration example below.
More info about customizing RR with your own plugins: