ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、视频、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
## persist ##### *Description* Remove the expiration timer from a key. 删除一个KEY的生命周期设置。 ##### *Parameters* *Key*: key ##### *Return value* *BOOL*: `<span class="calibre12">TRUE</span>` if a timeout was removed, `<span class="calibre12">FALSE</span>` if the key didn’t exist or didn’t have an expiration timer. 如果确实有生命周期并且成功移除,则返回TRUE。如果KEY不存在,或者KEY没有生命周期则返回FLASE。 ##### *Example* ``` <pre class="calibre9">$redis->persist('key'); ```