Skip to content
Advertisement

Tag: redis

Get all keys in Redis database with python

There is a post about a Redis command to get all available keys, but I would like to do it with Python. Any way to do this? Answer Use scan_iter() scan_iter() is superior to keys() for large numbers of keys because it gives you an iterator you can use rather than trying to load all the keys into memory. I

How to inspect and cancel Celery tasks by task name

I’m using Celery (3.0.15) with Redis as a broker. Is there a straightforward way to query the number of tasks with a given name that exist in a Celery queue? And, as a followup, is there a way to cancel all tasks with a given name that exist in a Celery queue? I’ve been through the Monitoring and Management Guide

How to implement server push in Flask framework?

I am trying to build a small site with the server push functionality on Flask micro-web framework, but I did not know if there is a framework to work with directly. I used Juggernaut, but it seems to be not working with redis-py in current version, and Juggernaut has been deprecated recently. Does anyone has a suggestion with my case?

Advertisement