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.

Files for aioworkers-redis, version 0.8
Filename, size File type Python version Upload date Hashes
Filename, size aioworkers_redis-0.8-py3-none-any.whl (10.4 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size aioworkers-redis-0.8.tar.gz (6.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page