Redis

The redis service is used to install and run Redis.

Configuration

Options

Currently, there are no options available. Please contact us if you need something in particular.

Full example

{
  "base::modules": [
    "redis"
  ]
}

Usage

By default, Redis is bound to localhost on its default port 6379 (127.0.0.1:6379).

Hint

most applications will connect automatically with this default settings

PHP

Depending on your applications requirements, you might need the phpredis extension to use Redis from PHP. The extension is precompiled and installed, but not loaded by default.

To load phpredis in your environment, specify the extenion in ~/cnf/php.ini:

extension = redis.so

Hint

see custom PHP configuration within the website service for details

Debugging

For debugging purposes, use redis-cli to connect to the Redis server:

$ redis-cli set key1 test
OK
$ redis-cli --scan
key1
$ redis-cli get key1
"test"

Hint

for details, see the redis-cli documentation