合规国际互联网加速 OSASE为企业客户提供高速稳定SD-WAN国际加速解决方案。 广告
## ttl, pttl ##### *Description* Returns the time to live left for a given key, in seconds. If the key doesn't exist, `<span class="calibre12">FALSE</span>` is returned. pttl returns a time in milliseconds. 取得一个KEY已经存在的时间。如果这个KEY不存在,则返回FLASE。PTTL使用毫秒为单位。 ##### *Parameters* *Key*: key ##### *Return value* Long, the time left to live in seconds. ##### *Example* ``` <pre class="calibre9">$redis->ttl('key'); ```