experteam/api-redis-bundle 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

experteam/api-redis-bundle

最新稳定版本:4.2.3

Composer 安装命令:

composer require experteam/api-redis-bundle

包简介

REDIS functionality bundle for APIs.

README 文档

README

Redis Services for APIs in Symfony 5.1+
It includes:

  • Redis Client: Predis client wrapper for writing and reading in redis.
  • Redis Transport: Service to save entities in redis and dispatch message queues.

Install

  1. Run de following composer command:
composer require experteam/api-redis-bundle
  1. Create the configuration file through any of the following options:

    a. Manually copy the example file in the package root to the folder config/packages/.

    b. Copy the vendor_copy.php file to the root of the project and configure the scripts in the composer.json file:

    "scripts": {
         "vendor-scripts": [
             "@php vendor_copy.php -s vendor/experteam/api-redis-bundle/experteam_api_redis.yaml.example -d config/packages/experteam_api_redis.yaml --not-overwrite --ignore-no-source"
         ],
         "post-install-cmd": [
             "@vendor-scripts"
         ],
         "post-update-cmd": [
             "@vendor-scripts"
         ]
     },
    
  2. Edit the bundle configuration file config/packages/experteam_api_redis.yaml:

experteam_api_redis:
    serialize_groups:
        save: read
        message: read
    elk_logger:
        save: true
        message: true
    entities:
        [Entity Namespace]:
            prefix: [prefix]
            save: false
            message: true
            message_class: [Message Class Namespace]    #required only if message equal true
        [Entity Namespace]:
            prefix: [prefix]
            save: true
            save_method: getId     #optional (default getId)
            message: false

Update

Run de following composer command:

composer update experteam/api-redis-bundle

License

MIT license.

统计信息

  • 总下载量: 11.14k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-01-05