pyrede 0.0.4

Last updated:

0 purchases

pyrede 0.0.4 Image
pyrede 0.0.4 Images
Add to Cart

Description:

pyrede 0.0.4

pyrede - The Element Snooze Python Module
:rocket:A Rede is a fancy snooze delayed queue
Usage
The Rede is an effective 'snooze button' for events,
you push an event into it along (for future referance) and in how many seconds you want it back,
and poll whenever you want the elements back. only expired elements would pop out.
import pyrede
import redis

rede = pyrede.Rede(redis.Redis(decode_responses=True), "demo")

rede.push("123", 1)
rede.push("456", 1)
rede.push("789", 3)

time.sleep(1)

list(rede.poll())

output-> ["123", "456"]

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.