Redis::pipeline(function ($redis) use ($ProductSoldCountData) {
$redis->del("lmrs::index::product::queue");
foreach ($ProductSoldCountData as $item) {
$item["id"], serialize($item), "EX", 86400);
//這報錯了
$redis->expires("lmrs::index::product::queue", 86400);
}
});
介面報錯
{
"data": "系統異常,請稍後在嘗試",
"restful": false,
"error": "Command 'EXPIRES' is not a registered Redis command."
}
本作品採用《CC 協議》,轉載必須註明作者和本文連結