magento2配置redis缓存,如何判断是否生效?

5.68K 浏览M2交流区

magento2配置redis缓存,如何判断是否生效?

按照群主的文档

https://www.kancloud.cn/zouhongzhao/magento2-in-action/628447

怎么判断是否生效?

0

输入  redis-cli  monitor

随便打开一个页面,如果看到下面的输出说明配置成功

1476824834.187250  [0  127.0.0.1:52353]  "select"  "0"
1476824834.187587  [0  127.0.0.1:52353]  "hmget"  "sess_sgmeh2k3t7obl2tsot3h2ss0p1"  "data"  "writes"
1476824834.187939  [0  127.0.0.1:52353]  "expire"  "sess_sgmeh2k3t7obl2tsot3h2ss0p1"  "1200"
1476824834.257226  [0  127.0.0.1:52353]  "select"  "0"
1476824834.257239  [0  127.0.0.1:52353]  "hmset"  "sess_sgmeh2k3t7obl2tsot3h2ss0p1"  "data"  "_session_validator_data|a:4:{s:11:"remote_addr";s:12:"10.235.34.14";s:8:"http_via";s:0:"";s:20:"http_x_forwarded_for";s:0:"";s:15:"http_user_agent";s:115:"Mozilla/5.0  (Windows  NT  10.0;  Win64;  x64)  AppleWebKit/537.36  (KHTML,  like  Gecko)  Chrome/53.0.2785.143  Safari/537.36";}_session_hosts|a:1:{s:12:"10.235.32.10";b:1;}admin|a:0:{}default|a:2:{s:9:"_form_key";s:16:"e331ugBN7vRjGMgk";s:12:"visitor_data";a:3:{s:13:"last_visit_at";s:19:"2016-10-18  21:06:37";s:10:"session_id";s:26:"sgmeh2k3t7obl2tsot3h2ss0p1";s:10:"visitor_id";s:1:"9";}}adminhtml|a:0:{}customer_base|a:1:{s:20:"customer_segment_ids";a:1:{i:1;a:0:{}}}checkout|a:0:{}"  "lock"  "0"
...  more  ...

0
您正在查看2个回答中的1个,单击此处查看所有回答。