Redis
Redis is an in-memory, open-source key-value data store often used as a cache and message broker. Because it stores data in a server's main memory (RAM) instead of on a hard disk, it offers extremely low-latency reads and writes, making it ideal for high-performance applications like Magento. Using Redis over on-disk caching for Magento is highly recommended.
Redis features include:
- PHP session storage
- Tag-based cache cleanup without foreach loops
- On-disk saves and master/slave replication
Redis is installed and ready to be configured in our AutoPilot deployments.
Configuring Redis in Magento
The configuration parameters for the Redis instances can be found on the AutoPilot dashboard.
The following commands will configure Magento to use Redis for caching and sessions.
Configure Magento for default caching:
php bin/magento setup:config:set --cache-backend=redis \
--cache-backend-redis-server=redis-cache.internal \
--cache-backend-redis-port=6380 \
--cache-backend-redis-db=0Configure Magento for page caching:
php bin/magento setup:config:set --page-cache=redis \
--page-cache-redis-server=redis-cache.internal \
--page-cache-redis-port=6380 \
--page-cache-redis-db=1 Configure Magento for session storage using Redis:
php bin/magento setup:config:set --session-save=redis \
--session-save-redis-host=redis-session.internal \
--session-save-redis-port=6379 \
--session-save-redis-db=0Advanced Configuration:
More information about the use and configuration of Redis with Magento can be found in the Magento Documentation.
Comments
0 comments
Article is closed for comments.