本文援引自:https://blog.csdn.net/zpf_nevergiveup/article/details/81066500
$redis->set($key,$value);
$expireTime = mktime(23, 59, 59, date("m"), date("d"), date("Y"));
//设置键的过期时间
$redis->expireAt($key, $expireTime);
本文援引自:https://blog.csdn.net/zpf_nevergiveup/article/details/81066500
$redis->set($key,$value);
$expireTime = mktime(23, 59, 59, date("m"), date("d"), date("Y"));
//设置键的过期时间
$redis->expireAt($key, $expireTime);