Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/php-bundles/redis-bundle
Symfony Redis Bundle
https://github.com/php-bundles/redis-bundle
client php redis symfony symfony-bundle
Last synced: 1 day ago
JSON representation
Symfony Redis Bundle
- Host: GitHub
- URL: https://github.com/php-bundles/redis-bundle
- Owner: php-bundles
- License: mit
- Created: 2016-06-02T02:07:51.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-08-15T18:23:32.000Z (4 months ago)
- Last Synced: 2024-12-15T20:13:50.776Z (8 days ago)
- Topics: client, php, redis, symfony, symfony-bundle
- Language: PHP
- Homepage:
- Size: 85.9 KB
- Stars: 25
- Watchers: 6
- Forks: 10
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
SymfonyBundlesRedisBundle
=========================[![Build][master Build Status Image]][master Build Status]
[![Code Coverage][code-coverage-image]][code-coverage-link]
[![Total Downloads][downloads-image]][package-link]
[![Latest Stable Version][stable-image]][package-link]
[![License][license-image]][license-link]Installation
------------
* Require the bundle with composer:``` bash
composer req symfony-bundles/redis-bundle
```Configuring of the clients
--------------------------
If you want to configure Redis clients - create a configuration file. For example:
``` yml
# 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:
``` yml
# 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:
* [Client Options][predis-options-link].
* [Connection Parameters][predis-parameters-link].How to use
----------
Read more on the page [Quick tour][predis-quick-tour-link].[package-link]: https://packagist.org/packages/symfony-bundles/redis-bundle
[license-link]: https://github.com/symfony-bundles/redis-bundle/blob/master/LICENSE
[license-image]: https://poser.pugx.org/symfony-bundles/redis-bundle/license
[stable-image]: https://poser.pugx.org/symfony-bundles/redis-bundle/v/stable
[downloads-image]: https://poser.pugx.org/symfony-bundles/redis-bundle/downloads
[predis-quick-tour-link]: https://github.com/nrk/predis/wiki/Quick-tour
[predis-options-link]: https://github.com/nrk/predis/wiki/Client-Options#list-of-supported-client-options
[predis-parameters-link]: https://github.com/nrk/predis/wiki/Connection-Parameters#connection-parameters
[master Build Status]: https://github.com/symfony-bundles/redis-bundle/actions?query=workflow%3ASymfony+branch%3Amaster
[master Build Status Image]: https://github.com/symfony-bundles/redis-bundle/workflows/Symfony/badge.svg?branch=master
[code-coverage-link]: https://codecov.io/gh/php-bundles/redis-bundle
[code-coverage-image]: https://codecov.io/gh/php-bundles/redis-bundle/graph/badge.svg?token=N1xHW6iLGl