📅  最后修改于: 2022-03-11 14:58:43.047000             🧑  作者: Mango
Redis can NOT do that,
simply 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);