Laravel Herd

Documentation for macOS

Redis

#
Setting up Redis for caching and queues

Redis is a fast in-memory data store that is very versatile, and most Laravel applications use it for caching or as queue service. While you may go with the sync driver for queues and the file driver for caches locally, it's often useful to have the same development setup that you use in production.

Screenshot of MySQL settings

#
Configuration

Redis comes with a sensible default configuration, making it easy to use for local development. You can change the port of the Redis service and decide if you want to automatically start it with Herd.

Depending on your requirements, you can set the environment variables to your preference and use it as queue or cache driver.

# Driver configuration
CACHE_DRIVER=redis
QUEUE_CONNECTION=redis
SESSION_DRIVER=redis
 
# Redis setup
REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6138