Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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