This article describes how to configure Magento 2 to use Redis.
Redis is an open-source memory object caching system that websites can use to help accelerate page load times. Redis works by caching in RAM frequently accessed data, such as the results of API calls, database calls, and more.
To enable Redis for Magento 2, follow these steps:
bin/magento setup:config:set --cache-backend=redis bin/magento setup:config:set --page-cache=redis bin/magento setup:config:set --session-save=redis
If you have a Turbo shared or reseller account, type the following commands. Replace username with your account username:
bin/magento setup:config:set --cache-backend=redis --cache-backend-redis-server=/home/username/.redis/redis.sock bin/magento setup:config:set --page-cache=redis --page-cache-redis-server=/home/username/.redis/redis.sock bin/magento setup:config:set --session-save=redis --session-save-redis-host=/home/username/.redis/redis.sock
Redis is now enabled for Magento.
For additional information about how to configure Redis with Magento 2, please visit:
Subscribe to receive weekly cutting edge tips, strategies, and news you need to grow your web business.
No charge. Unsubscribe anytime.
Did you find this article helpful? Then you'll love our support. Experience the A2 Hosting difference today and get a pre-secured, pre-optimized website. Check out our web hosting plans today.