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()
Development
Check code:
hatch run lint:all
Format code:
hatch run lint:fmt
Run tests:
hatch run pytest
Run tests with coverage:
hatch run cov
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.9.0.tar.gz
(13.5 kB
view details)
Built Distribution
File details
Details for the file aioworkers_redis-0.9.0.tar.gz
.
File metadata
- Download URL: aioworkers_redis-0.9.0.tar.gz
- Upload date:
- Size: 13.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.28.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
2421384eb3b12d0ec9a49d254656e17c378ef58a1db09a2379e27d841e85f839
|
|
MD5 |
99ff05122e727fe1b4a6bef25d886324
|
|
BLAKE2b-256 |
cb7c7ce068bfb5b0ead1bc8b636032da8ab7bdabf9121b5dd70fa200b109a154
|
File details
Details for the file aioworkers_redis-0.9.0-py3-none-any.whl
.
File metadata
- Download URL: aioworkers_redis-0.9.0-py3-none-any.whl
- Upload date:
- Size: 16.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.28.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
89e5daa935d3c3753c674118868aa98bbe390333851a3facaa2fd79dc0324fd8
|
|
MD5 |
e794211d87f5c8a7c951c30f9a4c73bc
|
|
BLAKE2b-256 |
e33278b7cc6b21798042e8355826b3ddc34035da546312259c71082fbab23fa0
|