symfony-bundles/redis-bundle

Symfony Redis Bundle

Installs: 194 343

Dependents: 3

Suggesters: 0

Security: 0

Stars: 23

Watchers: 5

Forks: 4

Open Issues: 0

Type:symfony-bundle

3.1.2 2020-12-30 06:05 UTC

This package is auto-updated.

Last update: 2021-04-15 09:22:34 UTC


README

Scrutinizer Code Quality Code Coverage Total Downloads Latest Stable Version License

Installation

  • Require the bundle with composer:
composer req symfony-bundles/redis-bundle

Configuring of the clients

If you want configure Redis clients - create configuration file. For example:

# config/packages/sb_redis.yaml
sb_redis:
    clients:
        default:
            $options:    []
            $parameters: ['tcp://127.0.0.1:6379?database=3']

If you want configure Redis clients Sentinel:

# config/packages/sb_redis.yaml
sb_redis:
    clients:
        default:
            $options:
              replication: 'sentinel’
              service: 'mymaster'
              parameters:
                database: '3'
            $parameters: ['%env(REDIS_URL)%', '%env(REDIS_URL)%']

Read more about supported client options and connection parameters:

How to use

Read more on the page Quick tour.