Olric
What is Olric
The Olric instance must connect to an external service (olric service) that you run on your own.
With Olric, you can instantly create a fast, scalable, shared pool of RAM across a cluster of computers.
Olric is implemented in Go and uses the Redis serialization protocol. So Olric has client implementations in all major programming languages.
Olric is highly scalable and available. Distributed applications can use it for distributed caching, clustering and publish-subscribe messaging.
Github repository
https://github.com/buraksezer/olric
Use Olric
With Caddy
You have to build your caddy instance including Souin
and Olric
using xcaddy
(refer to the build caddy section).
xcaddy build --with github.com/darkweak/souin/plugins/caddy --with github.com/darkweak/storages/olric/caddy
You will be able to use olric in your Caddyfile or JSON configuration file.
{
cache {
ttl 1h
olric
}
}
route {
cache
respond "Hello HTTP cache"
}
Configuration
You can’t configure in Souin the Olric server instance.
Values
There are no values to configure Olric because it just connects to the external Olric server.