agoat / redis-transport
此包已废弃,不再维护。未建议替代包。
支持调度的Redis流消息传递器适配器,用于Symfony
dev-master
2019-03-13 11:02 UTC
Requires
- php: ^7.1
- ext-redis: *
- symfony/cache: ^4.2
- symfony/messenger: ^4.2
- symfony/property-access: ^4.2
- symfony/serializer: ^4.2
This package is not auto-updated.
Last update: 2020-12-22 16:27:00 UTC
README
初始化
在config/packages
目录下添加一个redis_transport.yaml
文件,内容如下
services: _defaults: autowire: true autoconfigure: true public: false Agoat\RedisTransport\: resource: '../../vendor/agoat/redis-transport/src/*'
消息传递器配置
framework: messenger: transports: # Addd a redis transport with (optional) options redis: dsn: '%redis.transport.dsn%' options: namespace: 'myOwnNamespace' # A custom namespace channel: 'myChannel' # A channel name to split communication group: 'myGroup' # The groupname for multiple concurrent worker timeout: 60 # default count: 10 # default