redis 基础 一:帮助文档的查看
2014-03-31 20:45
369 查看
redis 基础 一
redis 基础 一:帮助文档的查看博客地址:http://blog.lingang.me/2014/03/31/redis-jichu-1/
1、联上 redis-cli 之后输入 “?” 或者 “help”回车:
redis 127.0.0.1:6379> ?
redis-cli 2.6.14Type: “help @<group>” to get a list of commands in <group>
“help <command>” for help on <command>
“help <tab>” to get a list of possible help topics
“quit” to exit
从这里可以得到的信息有:
输入 help @<group> 可以查到一组操作的使用,group 为操作的分组,比如 list 为一组操作,hash 为一组操作 server 为一组操作。比如输入 help @hash 能得到处理哈希类型的所有操作的解释以开始支持版本:
redis 127.0.0.1:6379> help @hash
HDEL key field [field ...]
summary: Delete one or more hash fields
since: 2.0.0
HEXISTS key field
summary: Determine if a hash field exists
since: 2.0.0
HGET key field
summary: Get the value of a hash field
since: 2.0.0
HGETALL key
summary: Get all the fields and values in a hash
since: 2.0.0
第二行 help <command> 可以查看一个命令的详情,比如输入 help lpop 能查看 lpop 的操作详情:
redis 127.0.0.1:6379> help lpop
LPOP key
summary: Remove and get the first element in a list
since: 1.0.0
group: list
当你不知道有哪些分组和哪些命令时,可以直接输入 help 然后空格然后按 tab 键,会逐一为你列举:
redis 127.0.0.1:6379> help @generic
redis 127.0.0.1:6379> help @string
注意:此处以@符开头的能得到一组操作。
当你记不清楚一个命令时,可以输入头一个或几个字符,然后按tab,会逐一为你列举符合以你输入为开头的命令,比如:
redis 127.0.0.1:6379> help LPOP
redis 127.0.0.1:6379> help LPUSH
好了,掌握了以上几种用法,已经足以你看遍所有 redis 命令了。
相关文章推荐
- linux基础之帮助文档查看-2014.2.11
- Redis查看帮助文档
- OC基础----查看苹果帮助文档
- Ubuntu中安装查看chm帮助文档的文件格式
- java基础第一讲——JDK、注释、帮助文档、编码规范
- help和man查看命令帮助文档
- OC基础:NSString NSNumber 如何学习苹果帮助文档
- Android初学者笔记(三)查看帮助和文档
- 查看Mysql帮助文档的方法
- linux查看帮助文档的小常识
- MyEclipse中解决不能查看源代码或者API帮助文档的方法
- 在Linux上如何查看Python3自带的帮助文档?
- XAF 帮助文档翻译 EasyTest Basics(基础)
- Eclipse生成javadoc帮助文档及基础知识
- 如何在命令行模式下查看Python帮助文档---dir、help、__doc__
- 本地编译并查看NS3帮助文档
- 在命令行中查看python帮助文档 --dir、help、__doc__
- python基础31[help()来查看帮助]
- Linux 常用基本命令 查看帮助文档
- 6.JAVA基础复习——JAVA中文档注释与帮助文档的生成