定制 bazarov392/db-to-redis-events-laravel 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

bazarov392/db-to-redis-events-laravel

最新稳定版本:1.0.1

Composer 安装命令:

composer require bazarov392/db-to-redis-events-laravel

包简介

Events about data changes from the database to Redis

README 文档

README

Events about data changes from the database to Redis.

  • At the moment, it is only compatible with MySQL and Laravel because it uses models from Laravel.

Installion

Install package

composer require bazarov392/db-to-redis-events-laravel

Use

// app/Providers/AppServiceProvider.php
use Bazarov392\RedisEventsFromDB;

public function boot(): void
{
    RedisEventsFromDB::init();
    // ...
}

Docs

Format message

db_event.{tableName}.{typeEvent}.{idRow}
  • tableName - Table name
  • typeEvent - Type event ( created | updated | deleted )
  • idRow - If the column has a primary key, it will be listed here. If not, it will not be specified, but the JSON of the model will be in the body of the event.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-06-06