📅  最后修改于: 2022-03-11 14:58:09.241000             🧑  作者: Mango
create dedicated Redis object and set serialize to NONE
$redpint= new \Redis(); //special Redis object for integer only
$redpint->setOption(Redis::OPT_SERIALIZER, Redis::SERIALIZER_NONE);