Redis 中文文档 Redis 中文文档
指南
redis.io (opens new window)
指南
redis.io (opens new window)
  • 关于
    • Redis 开源治理
    • Redis 发布周期
    • Redis 赞助商
  • 入门
  • 数据类型
  • Redis Stack
  • 命令
  • 手册

RedisBundle


Build Status

About


This bundle integrates Predis and PhpRedis into your Symfony 4.4+ application, providing a fast and convenient interface to Redis.

Using the native PhpRedis extension is recommended as it is faster and our main development platform. If the extension is not available and cannot be installed in your environment Predis is considered a safe and portable alternative, and our integration should be functionally identical.

Installation


Use Composer :

  1. ``` shell
  2. composer require snc/redis-bundle
  3. ```

Documentation


Read the documentation in docs/

Contributing


Running full test suite requires PHP installed with certain PHP extensions and redis server, as well as overmind to start the fleet of redis processes.

Because of this, we use Nix for local development.

After you install Nix, make sure you are in directory with SncRedisBundle. Within it, you can run

  1. ``` sh
  2. nix shell --extra-experimental-features nix-command --extra-experimental-features flakes

  3. ```

to install and enter the development environment. Once there, you can run

  1. ``` sh
  2. composer update # install php package dependencies
  3. overmind start & # start redis fleet
  4. php vendor/bin/phpunit # run tests, or anything else you want with php binary

  5. ```

When committing, please do not include changes in redis-sentinel.conf or nodes.conf files, as those change often.

License


See LICENSE.
Last Updated: 2023-09-03 19:17:54