Redis Dbsize 命令

更新时间: 2019-07-07 15:54

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 服务器命令

Responsive Web Design

Responsive Web Design

Ethan Marcotte / Happy Cog / 2011-6 / USD 18.00

From mobile browsers to netbooks and tablets, users are visiting your sites from an increasing array of devices and browsers. Are your designs ready? Learn how to think beyond the desktop and craft be......一起来看看 《Responsive Web Design》 这本书的介绍吧!

URL 编码/解码

URL 编码/解码

URL 编码/解码

正则表达式在线测试

正则表达式在线测试

正则表达式在线测试

HEX CMYK 转换工具

HEX CMYK 转换工具

HEX CMYK 互转工具