ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
## dbSize ##### *Description* Returns the current database's size. 返回当前DB的KEY的数量 ##### *Parameters* None. ##### *Return value* *INTEGER*: DB size, in number of keys. ##### *Example* ``` <pre class="calibre16">$count = $redis->dbSize(); echo "Redis has $count keys\n"; ```