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