agoat/redis-transport

此包已废弃,不再维护。未建议替代包。

支持调度的Redis流消息传递器适配器,用于Symfony

dev-master 2019-03-13 11:02 UTC

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