symfony-bundles / redis-bundle
Symfony Redis Bundle
Installs: 885 809
Dependents: 4
Suggesters: 0
Security: 0
Stars: 25
Watchers: 6
Forks: 10
Open Issues: 2
Type:symfony-bundle
Requires
- php: ^7.2||^8.0
- predis/predis: ~1.1||~2.2
- symfony/framework-bundle: ^4.3||^5.0||^6.0||^7.0
- symfony/yaml: ^4.3||^5.0||^6.0||^7.0
Requires (Dev)
- phpstan/phpstan: ^1.11
- phpstan/phpstan-phpunit: ^1.4
- phpunit/phpunit: ^8.5||^9.0
- squizlabs/php_codesniffer: ^3.5
- symfony/phpunit-bridge: ^5.0
README
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.