yiisoft/yii2-redis
Yii2 Redis extension providing Redis connection plus Cache, Session, and Mutex handlers, and an ActiveRecord layer to store and query structured data in Redis using familiar Yii2 patterns. Requires Redis 2.6.12+ and PHP 7.4+ (best on PHP 8).
Mutex for thread-safe operations (e.g., rate limiting, inventory management) in multi-instance environments.PredisConnection) for horizontal scaling.Adopt When:
Look Elsewhere When:
predis/predis or phpredis.JOIN, GROUP BY)—stick with a relational database or use RedisJSON/RedisSearch.stackexchange/redis.*"This package lets us replace slow, unreliable file/database caching with Redis—cutting response times by 80% for high-traffic features like user sessions and product catalogs. For our SaaS platform, this means:
*"Why This Package (vs. raw Redis or other solutions):
Cache, Session, and ActiveRecord—no reinventing wheels.PredisConnection).Key Trade-offs:
predis for advanced features).Proposal:
Blockers to Address:
How can I help you explore Laravel packages today?