Redis Dbsize 命令
Redis 教程
· 2019-03-08 17:27:35
Redis Dbsize 命令用于返回当前数据库的 key 的数量。
语法
redis DBSIZE 命令基本语法如下:
redis 127.0.0.1:6379> DBSIZE
可用版本
>= 1.0.0
返回值
当前数据库的 key 的数量。
实例
redis 127.0.0.1:6379> DBSIZE (integer) 5 redis 127.0.0.1:6379> SET new_key "hello_moto" # 增加一个 key 试试 OK redis 127.0.0.1:6379> DBSIZE (integer) 6
点击查看所有 Redis 教程 文章: https://www.codercto.com/courses/l/33.html
JavaScript
David Flanagan / O'Reilly Media / 2011-5-13 / GBP 39.99
The book is a programmer's guide and comprehensive reference to the core JavaScript language and to the client-side JavaScript APIs defined by web browsers. The sixth edition covers HTML 5 and ECMA......一起来看看 《JavaScript》 这本书的介绍吧!