skillfed

prefect-redis

Prefect integrations with Redis.

prefect-redis v0.2.14 188.0K downloads/30d#9,954 on PyPI23,623
Permissive license Apache License 2.0 Active released

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-redis

uv

uv add prefect-redis

poetry

poetry add prefect-redis

Installing 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

Intended Audience :: DevelopersIntended Audience :: System AdministratorsLicense :: OSI Approved :: Apache Software LicenseNatural Language :: EnglishProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Topic :: Software Development :: Libraries

Tags

prefect redis integrationredis state storage prefectworkflow orchestration redisprefect task caching redisdistributed workflow redis backendprefect redis blocksworkflow state persistence redis
workflow-orchestrationredis-integrationdistributed-computing

More Libraries packages