Redis Flushall 命令
Redis 教程
· 2019-03-08 18:13:19
Redis Flushall 命令用于清空整个 Redis 服务器的数据(删除所有数据库的所有 key )。
语法
redis Flushall 命令基本语法如下:
redis 127.0.0.1:6379> FLUSHALL
可用版本
>= 1.0.0
返回值
总是返回 OK 。
实例
redis 127.0.0.1:6379> DBSIZE # 0 号数据库的 key 数量 (integer) 9 redis 127.0.0.1:6379> SELECT 1 # 切换到 1 号数据库 OK redis 127.0.0.1:6379> DBSIZE # 1 号数据库的 key 数量 (integer) 6 redis 127.0.0.1:6379> flushall # 清空所有数据库的所有 key OK redis 127.0.0.1:6379> DBSIZE # 不但 1 号数据库被清空了 (integer) 0 redis 127.0.0.1:6379> SELECT 0 # 0 号数据库(以及其他所有数据库)也一样 OK redis 127.0.0.1:6379> DBSIZE (integer) 0
点击查看所有 Redis 教程 文章: https://codercto.com/courses/l/33.html
Algorithms on Strings, Trees and Sequences
Dan Gusfield / Cambridge University Press / 1997-5-28 / USD 99.99
String algorithms are a traditional area of study in computer science. In recent years their importance has grown dramatically with the huge increase of electronically stored text and of molecular seq......一起来看看 《Algorithms on Strings, Trees and Sequences》 这本书的介绍吧!