跳到主要内容

exists

指定的键是否存在(exists)

声明

bool exists(mixed db, string key)

参数

参数名描述
db数据库名称或者数据库对象
key

返回值

true-存在/false-不存在

使用方式

返回文档