> ## Documentation Index
> Fetch the complete documentation index at: https://www.jetify.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Redis

> Redis can be configured automatically using Devbox's built in Redis plugin. This plugin will activate automatically when you install Redis using `devbox add redis`.

[**Example Repo**](https://github.com/jetify-com/devbox/tree/main/examples/databases/redis)

## Adding Redis to your shell[​](#adding-redis-to-your-shell "Direct link to Adding Redis to your shell")

`devbox add redis`, or in your Devbox.json

```json theme={null}
    "packages": [
        "redis@latest"
    ]
```

This will install the latest version of Redis. You can find other installable versions of Redis by
running `devbox search redis`. You can also view the available versions on
[Nixhub](https://www.nixhub.io/packages/redis)

## Redis Plugin Details[​](#redis-plugin-details "Direct link to Redis Plugin Details")

The Redis plugin will automatically create the following configuration when you install Redis with
`devbox add`

### Services[​](#services "Direct link to Services")

* redis

Use `devbox services start|stop [service]` to interact with services

### Helper Files[​](#helper-files "Direct link to Helper Files")

The following helper files will be created in your project directory:

* \{PROJECT\_DIR}/devbox.d/redis/redis.conf

### Environment Variables[​](#environment-variables "Direct link to Environment Variables")

```bash theme={null}
REDIS_PORT=6379
REDIS_CONF=./devbox.d/redis/redis.conf
```

### Notes[​](#notes "Direct link to Notes")

Running `devbox services start redis` will start redis as a daemon in the background.

You can manually start Redis in the foreground by running
`redis-server $REDIS_CONF --port $REDIS_PORT`.

Logs, pidfile, and data dumps are stored in `.devbox/virtenv/redis`. You can change this by
modifying the `dir` directive in `devbox.d/redis/redis.conf`

### Disabling the Redis Plugin[​](#disabling-the-redis-plugin "Direct link to Disabling the Redis Plugin")

You can disable the Redis plugin by running `devbox add redis --disable-plugin`, or by setting the
`disable_plugin` field in your `devbox.json`:

```json theme={null}
{
  "packages": {
    "redis": {
      "version": "latest",
      "disable_plugin": true
    }
  }
}
```

[Edit this page](https://github.com/jetify-com/docs/tree/main/docs/devbox/devbox-examples/databases/redis/index.mdx)
