📅  最后修改于: 2022-03-11 15:00:16.178000             🧑  作者: 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);