prefect-redis
Prefect integrations with Redis.
What it is and what it does
prefect-redis is an official integration package that connects Prefect's workflow orchestration engine to Redis, a fast in-memory data store. It allows you to use Redis as a backend for Prefect state storage, task result caching, and distributed coordination across workflow runs. The package is maintained by the Prefect team and integrates seamlessly with the Prefect ecosystem.
You install it alongside prefect and redis, then use its blocks and decorators to configure Redis as a storage or caching layer in your Prefect workflows. It's designed for teams running distributed workflows that need fast, reliable state management and result caching without external infrastructure complexity.
Use it for:
- Use it to cache expensive task results in Redis, avoiding recomputation when workflows retry or reschedule.
- Use it as a state backend for Prefect to persist workflow execution state across distributed agents.
- Use it to coordinate task dependencies and state sharing across multiple concurrent workflow runs.
- Use it to speed up workflow restarts by retrieving cached results from Redis instead of recomputing.
- Use it in microservice architectures where Prefect workflows need fast, shared state storage.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Integrates Prefect workflow orchestration with Redis, enabling Redis-backed state storage, caching, and task coordination for Prefect workflows.
Yes, if you run Prefect workflows and want Redis-backed state or caching. The package is actively maintained, has low install friction, carries no known vulnerabilities, and is licensed permissively. It requires Python 3.10+ and a running Redis instance. Install it when you need distributed workflow coordination or fast result caching in Prefect.
Install
prefect-redis on PyPI
pip
pip install prefect-redisuv
uv add prefect-redispoetry
poetry add prefect-redisInstalling prefect-redis
Before you install
Low install friction with a pure-Python wheel. Actively maintained as of 10 days ago with recent commits and a substantial repository (23623 stars). Requires Python 3.10 or later and depends on prefect and redis packages.
License in practice
Licensed under Apache License 2.0 (permissive). You may use, modify, and distribute this package freely in commercial and private projects, provided you include a copy of the license and state any significant changes.
Quickstart
pip install prefect-redis
from prefect_redis import redis_cache_key
from prefect import task, flow
@task
@redis_cache_key()
def my_task():
return "result"
@flow
def my_flow():
my_task()
Requires Python 3.10 or later; requires a running Redis server for state and caching operations.
Verify before relying
- Specific Redis features supported (e.g., clustering, sentinel, persistence modes) not detailed in fact sheet.
- Whether this package provides Redis blocks, task result storage, or only caching—unclear from excerpt.
- Performance characteristics or scalability limits for distributed workflows not documented in fact sheet.
Package facts
| License | Apache License 2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — prefect, redis |
| Maintenance | actively maintained — 10 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 187,983/month — #9,954 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: prefect_redis-0.2.14-py3-none-any.whl
Keywords: prefect
Tags
More Libraries packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
python-dateutilProvides parsing, arithmetic, and recurrence…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
pytestpytest is a testing framework that lets you…
permissive · top 100 on PyPI
mad-prefectAdds a data asset pattern to Prefect workflows,…
unclear · top 15,000 on PyPI
prefect-daskIntegrates Prefect workflow orchestration with…
permissive · top 15,000 on PyPI
prefect-gitlabIntegrates Prefect workflow orchestration with…
permissive · top 15,000 on PyPI
prefect-sqlalchemyIntegrates SQLAlchemy with Prefect workflows,…
permissive · top 5,000 on PyPI
prefect-rayIntegrates Ray distributed computing with…
permissive · top 15,000 on PyPI
prefect-dockerProvides Docker task execution and container…
permissive · top 5,000 on PyPI
prefect-azurePrefect integrations for orchestrating…
permissive · top 15,000 on PyPI
prefect-githubProvides Prefect workflow tasks and blocks for…
permissive · top 5,000 on PyPI
prefectPrefect is a Python workflow orchestration…
permissive · top 5,000 on PyPI
mirakuruMirakuru starts external processes (databases,…
copyleft · top 5,000 on PyPI