I check similar question but I am unable to find command to add Redis server for full page cache.
The command to add Redis for backend cache is following:
php bin/magento setup:config:set --cache-backend=redis --cache-backend-redis-server=xxxxxxxx --cache-backend-redis-db=0
I want to use Redis for Full Page Cache what would be the command to do this?
Best Answer
I found the solution.
For Backend cache on Redis
use below sample command
For Page Cache on Redis
use below sample command
Both cache could be save on same redis server but it will use different databases 0 and 1
Note: For local redis cache, use 127.0.0.1