代潇瑞博客

persist 命令/方法/函数

Description

Remove the expiration timer from a key.

删除一个KEY的生命周期设置。


Parameters

Key: key


Return value

BOOL: TRUE if a timeout was removed, FALSE if the key didn’t exist or didn’t have an expiration timer.

如果确实有生命周期并且成功移除,则返回TRUE。如果KEY不存在,或者KEY没有生命周期则返回FLASE。


Example

$redis->persist('key');

【相关命令】

触屏版 | 电脑版

Copyright © 2013 代潇瑞博客手机版

QQ: 446673330

粤ICP备13071969号-1