Skip to content

Install Optional Providers

Async Hybrid Cache has no required runtime dependencies. Install only the providers your application uses.

Redis distributed cache and Redis Streams invalidation

uv add "async-hybrid-cache[redis]"

Use this when Redis should store shared cached values, carry invalidation messages, or both.

Memcached distributed cache

uv add "async-hybrid-cache[memcache]"

Use this when Memcached should store shared cached values. Memcached does not provide an invalidation bus, so pair it with Redis Streams, RabbitMQ, Kafka, PostgreSQL, or manual invalidation when multiple application instances need coordinated local cache removal.

RabbitMQ invalidation

uv add "async-hybrid-cache[rabbitmq]"

Use this when your application already has RabbitMQ and only needs invalidation messages between instances.

Kafka invalidation

uv add "async-hybrid-cache[kafka]"

Use this when Kafka is already part of your platform and every cache instance must receive each invalidation.

PostgreSQL notification invalidation

uv add "async-hybrid-cache[postgres]"

Use this for PostgreSQL LISTEN/NOTIFY invalidation when you do not want to run a separate message broker.

All optional providers

uv add "async-hybrid-cache[all]"

Use this for experiments or shared application templates. Production apps usually install only the extras they need.