yiisoft / yii2-redis

Yii 2 Redis extension.
http://www.yiiframework.com
BSD 3-Clause "New" or "Revised" License
451 stars 184 forks source link

ERR syntax error #150

Closed ppanphper closed 6 years ago

ppanphper commented 6 years ago

What steps will reproduce the problem?

connection the redis cluster

Redis error: ERR syntax error Redis command was: SET PHP:4c9c60e35188097ba8f6d052ff4a160e a:2:{i:0;a:12:{i:0;s:1:"1";i:1;s:1:"2";i:2;s:1:"4";i:3;s:1:"5";i:4;s:1:"6";i:5;s:1:"7";i:6;s:1:"9";i:7;s:2:"10";i:8;s:2:"11";i:9;s:2:"12";i:10;s:2:"13";i:11;s:1:"8";}i:1;O:25:"yii\caching\TagDependency":3:{s:4:"tags";s:9:"mdm.admin";s:4:"data";a:1:{s:36:"PHP:f90ab1de9bef54e4a8c4bd9bde61f092";s:21:"0.94828900 1525314402";}s:8:"reusable";b:0;}} PX 3600000

What's expected?

fixed the bug

What do you get instead?

Additional info

Error in the "0.94828900 1525314402"

In the method "Connection->executeCommand"

return $this->parseResponse(implode(' ', $params), $this->_socket);

Q A
Yii vesion Yii2
PHP version 5.6.11
Operating system Centos6.5
Redis version 3.2.0
Redis mode cluster