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
其他信息
- 授权协议: MIT
- 更新时间: 2023-06-06