What is Olric

Olric is a distributed, in-memory object store. It's designed from the ground up to be distributed, and it can be used both as an embedded Go library and as a language-independent service.

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

Values