Skip to main content

Redis

Redis is an open source (BSD licensed), in-memory data structure store, used as a database, cache, and message broker.
Below you can find a basic example to deploy a redis server using their official docker image:


Copy past the previous content and save it under a file called redis.yml.
Then execute the following command to startup a redis server:

nanocl state apply -s redis.yml -- --volume /opt/redis
tip

Other cargo created in the same namespace global will be able to connect to the redis using is key redis.global.c The key can be predicted and caculated, it's formated this way: cargo_name.namespace_name.c|v c for container or v for virtual machine. This allow us to have the same name for virtual machine and containers.