Skip to content

Latest commit

 

History

History
27 lines (25 loc) · 819 Bytes

redis.md

File metadata and controls

27 lines (25 loc) · 819 Bytes

Requirements:

"predis/predis": "^1.1"

Configuration example:

sfcod_queue:
    drivers:
        redis: 'SfCod\QueueBundle\Connector\RedisConnector'
    connections:
        default: { driver: 'redis', collection: 'queue_jobs', queue: 'default', expire: 360, limit: 2 }

services:
    SfCod\QueueBundle\Service\RedisDriver:
        arguments:
            - '%env(REDIS_URL)%'
    SfCod\QueueBundle\Connector\RedisConnector:
        arguments:
            - '@SfCod\QueueBundle\Base\JobResolverInterface'
            - '@SfCod\QueueBundle\Service\RedisDriver'
    SfCod\QueueBundle\Failer\FailedJobProviderInterface:
        class: SfCod\QueueBundle\Failer\RedisFailedJobProvider
        arguments:
            - '@SfCod\QueueBundle\Service\RedisDriver'
            - 'queue_jobs_failed'