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 py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page