NIUCLOUD是一款SaaS管理后台框架多应用插件+云编译。上千名开发者、服务商正在积极拥抱开发者生态。欢迎开发者们免费入驻。一起助力发展! 广告
## 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'); ```