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.
#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 configurationCACHE_DRIVER=redisQUEUE_CONNECTION=redisSESSION_DRIVER=redis # Redis setupREDIS_HOST=127.0.0.1REDIS_PASSWORD=nullREDIS_PORT=6138