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://codercto.com/courses/l/33.html
Weaving the Web
Tim Berners-Lee / Harper Paperbacks / 2000-11-01 / USD 15.00
Named one of the greatest minds of the 20th century by Time , Tim Berners-Lee is responsible for one of that century's most important advancements: the world wide web. Now, this low-profile genius-wh......一起来看看 《Weaving the Web》 这本书的介绍吧!