合规国际互联网加速 OSASE为企业客户提供高速稳定SD-WAN国际加速解决方案。 广告
## exists ##### Description Verify if the specified key exists. 验证一个指定的KEY是否存在 ##### Parameters *key* ##### Return value *BOOL*: If the key exists, return `<span class="calibre12">TRUE</span>`, otherwise return `<span class="calibre12">FALSE</span>`. ##### Examples ``` <pre class="calibre16">$redis->set('key', 'value'); $redis->exists('key'); /* TRUE */ $redis->exists('NonExistingKey'); /* FALSE */ ```