Skip to content

serhiidonii/redis-bundle

 
 

Repository files navigation

SymfonyBundlesRedisBundle

Build 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 to configure Redis clients - create a 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 to 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.

About

Symfony Redis Bundle

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%