ANS Documentation

Improve This Doc
  • Cloud
  • Domains and DNS management
  • Backup and High Availability
  • eCommerce Stacks
    • Magento
      • Magento 1
      • Magento 2
    • Shopware
    • WooCommerce
    • AeroCommerce
  • Security
  • Email
  • Monitoring and usage management
  • Networking
  • Operating systems
  • Webcelerator
  • MyUKFast
  • Home >
  • eCommerce Stacks >
  • Magento >
  • Magento 2 >
  • Redis >
  • Redis

Redis¶

Magento2 Modules¶

We recommend you ensure the Magento2 modules are kept up to date, these can be located here:

Sessions¶

https://github.com/colinmollenhour/Cm_RedisSession
https://github.com/colinmollenhour/credis

Cache¶

https://github.com/colinmollenhour/Cm_Cache_Backend_Redis

Configure Magento2 For Redis¶

You can use the Magento2 CLI to configure Redis. Please review the below commands before running, you may need to change the host, port and or db values.

Sessions¶

php bin/magento setup:config:set --session-save=redis --session-save-redis-host=127.0.0.1 --session-save-redis-port=6379 --session-save-redis-log-level=3 --session-save-redis-db=2

Cache¶

php bin/magento setup:config:set --cache-backend=redis --cache-backend-redis-server=127.0.0.1 --cache-backend-redis-port=6380 --cache-backend-redis-db=0

Page Cache¶

php bin/magento setup:config:set --page-cache=redis --page-cache-redis-server=127.0.0.1 --page-cache-redis-port=6381 --page-cache-redis-db=1

Redis Service¶

You can find more information on the Redis service here

Next Article > Troubleshooting

  • Useful Links
  • SMB
  • Enterprise
  • Channel
  • Public Sector
  • ANS Data Centres
  • About ANS
  • Careers
  • Blog
  • Get in touch
  •  
  • Sales 0800 458 4545
  • Support 0800 230 0032
  • Get in touch

© ANS Group Limited | Terms and Conditions | Corporate Guidance | Sitemap
ANS Group Limited, registered in England and Wales, company registration number 03176761, registered office 1 Archway, Birley Fields, Manchester M15 5QJ