设置在lpush predis php中过期?

时间:2016-10-19 05:26:10

标签: php redis predis

我想为redis lpush函数设置expiry:

$obj->lpush($key,$id);
$obj->expire($key,EXPIRE_TIME);

但我得到的错误如下:

Undefined method expire()

请帮我解决这个问题。

0 个答案:

没有答案