dekalee/redis-swarrot-bundle

swarrot的redis适配器的包

v1.0.0 2017-03-16 09:54 UTC

This package is auto-updated.

Last update: 2024-09-12 04:20:14 UTC


README

Scrutinizer Code Quality Latest Stable Version Total Downloads License

此包将封装swarrot-redis库。

它将提供一个在SwarrotBundle中使用redis提供者的方法。

安装

使用composer安装此包

    composer require dekalee/redis-swarrot-bundle

AppKernel.php文件中激活它

    new Dekalee\RedisSwarrotBundle\DekaleeRedisSwarrotBundle(),

配置

在你的config.yml文件中,你应该设置提供者为redis并指定连接

    swarrot:
        provider: redis
        default_connection: redisQueue
        connections:
            redisQueue:
                host: %redis_queue_host%
                port: %redis_queue_port%
                vhost: %redis_queue_database%

使用方法

你可以像以前一样直接使用你的队列系统