Store

The store package abstracts the persistent data storage into the Backend interface. Stores are key/value databases used to persistently store objects within torero.

The store backend can be configured using the TORERO_STORE_BACKEND environment variable. The default backend is set to local.

torero currently supports different store backends. Only one backend is in use at any given time. The following sections provide more details about each backend.

Configuration

Store currently has one configuration variable of TORERO_STORE_BACKEND. This variable can be set to either local, memory, or etcd.

Local

The local backend is implemented as a key/value database on disk. It writes to a single file. The default filename for the local backend is TORERO_APPLICATION_WORKING_DIR/torero.db

Memory

The memory backend is implemented as a memory resident key/value database using a hashmap.

Etcd

And etcd store can be configured along with additional connection variables to connect to an etcd storage backend. An etcd store is required when running torero with runners. For more information on configuring an etcd cluster, please see the full guide etcd guide.