what is it?

a source-available, in-memory storage, used as a distributed, in-memory key–value database, cache and message broker, with optional durability. because it holds all data in memory and because of its design, redis offers low-latency reads and writes, making it particularly suitable for use cases that require a cache

celery integration

inspecting queues

import redis
from django.conf import settings
 
redis_connection = redis.Redis.from_url(settings.CELERY_BROKER_URL)
 
# celery is the queue name here
unacked_count = redis_connection.llen("celery")
print(f"Number of unacknowledged tasks: {unacked_count}")