Module for working with redis
Project description
Redis plugin for aioworkers.
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()
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.8.tar.gz
(6.4 kB
view hashes)
Built Distribution
Close
Hashes for aioworkers_redis-0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f32eb97dfbc6d1a962f42399ddd33ec11a93a248e332d7c05d985b9e95c3a78 |
|
MD5 | ca6509888069aee16e50b56c2a997f8e |
|
BLAKE2b-256 | 8da328c6cfd25c051144d785d96c7fc9793658c81c21a72a9529941a76a2c33a |