--- id: prefect-redis version: "0.2.14" license: Apache License 2.0 license_treatment: permissive maintenance: active --- # prefect-redis — Prefect integrations with Redis. License: permissive · Maintenance: active · Downloads: 188.0K/mo ## 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 above — 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 pip install prefect-redis uv add prefect-redis 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_current - Install friction: low - Maintenance: active - Downloads: 188.0K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags prefect redis integration, redis state storage prefect, workflow orchestration redis, prefect task caching redis, distributed workflow redis backend, prefect redis blocks, workflow state persistence redis, workflow-orchestration, redis-integration, distributed-computing [View on SkillFed](https://skillfed.io/packages/prefect-redis) · [View on PyPI](https://pypi.org/project/prefect-redis/)