Module for working with redis
Project description
Redis plugin for aioworkers.
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()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
aioworkers-redis-0.7.1.tar.gz
(5.1 kB
view hashes)