🎉 monetr is now live! Read the announcement here. Or Sign Up!

Redis Configuration

monetr can use any cache that is compatible with Redis’s wire protocol. In the provided Docker compose file, local development environment as well as in production valkey is used.

monetr only caches a few things, and for self-hosting it may not even be necessary to run a dedicated cache at this time as monetr also leverages miniredis when a cache server has not been configured. For a single monetr server this embedded “Redis” is sufficient.

To configure a dedicated cache server though:

config.yaml
redis:
  enabled: <true|false> # If this is set to false then miniredis is used.
  address: "localhost"
  port: 6379
NameTypeDefaultDescription
enabledBooleanfalseEnable a dedicated cache server, if this is set to false then an embedded miniredis instance is used instead.
addressStringThe IP, or DNS resolvable address of your Redis-compatible cache server.
portNumber6379Port that the Redis-compatible cache server can be reached at.

monetr does not support credentials or TLS for this cache server at this time. Sensitive information is never cached on this server and the use of the cache is purely for performance.

The following environment variables map to the following configuration file fields. Each field is documented below.

VariableConfig File Field
MONETR_REDIS_ENABLEDredis.enabled
MONETR_REDIS_ADDRESSredis.address
MONETR_REDIS_PORTredis.port