Skip to main content

Module for working with redis

Project description

Redis plugin for aioworkers.

https://github.com/aioworkers/aioworkers-redis/workflows/Tests/badge.svg https://codecov.io/gh/aioworkers/aioworkers-redis/branch/master/graph/badge.svg https://img.shields.io/pypi/v/aioworkers-redis.svg Updates Documentation Status https://img.shields.io/pypi/pyversions/aioworkers-redis.svg

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


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)

Uploaded Source

Built Distribution

aioworkers_redis-0.8-py3-none-any.whl (10.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page