aioworkers-redis

Module for working with redis


Keywords
aioworkers, redis, asyncio, python
License
Apache-2.0
Install
pip install aioworkers-redis==0.8

Documentation

aioworkers-redis

Redis plugin for aioworkers.

Updates Documentation Status

Features

Usage

Add this to aioworkers config.yaml:

redis:
    cls: aioworkers_redis.base.Connector
    prefix: app
    connection:
        host: localhost
        port: 6379
        maxsize: 20
queue:
    cls: aioworkers_redis.queue.Queue
    connection: .redis
    format: json
    key: queue

You can work with redis queue like this:

await context.queue.put({'a': 1})
d = await context.queue.get()