Menu

Lesson 11: Set Up Redis for Laravel Queue and Cache in Docker
📰

Lesson 11: Set Up Redis for Laravel Queue and Cache in Docker

DEV Community: redis·Muhammad Yasir Amin·1 day ago
#DbyOlBNq
#devtoredis#devto#dev#file#redis
Reading 0:00
15s threshold

Laravel Docker Lessons · Lesson 11

Set up Redis for Laravel queues and cache with Docker, PHPRedis, a real queued job, TTL cache results, worker commands and a Mailtrap queue option.

This written tutorial follows the actual lesson-11 source snapshot . The written guide is ready before the video recording.

Continue from Lesson 10 , or browse the complete blog .

This lesson adds Redis 7.4, the native PHPRedis extension and an optional Compose override that changes Laravel's queue and cache stores to Redis. MySQL still stores users, sessions and failed-job records. A small queued job writes a result into Redis cache, so you can verify the complete flow without SMTP credentials or sending email.

Complete file checklist before running commands

Keep docker-compose.yaml as the base and create docker-compose.redis.yaml as a separate additive override. Pass both files to every command.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.