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 or memory.

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.