godis-cli

command
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 19, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

README

godis命令行客户端工具

author: Liu Shihao
email: liushihao1993@hotmail.com
date:20210507

  • 输入help查看命令帮助
  • help+cmd 查看该命令的帮助
  • 20210507: string类型的文档及命令待补充(抽时间吧)

Terminal example

Command

cmd type usage note
SET-KEYS SET SET-KEYS 查看所有的集合的key
SET-ADD SET SET-ADD key member [member ...] 向集合添加数据
SET-CARD SET SET-CARD key 查看集合元素的个数
SET-POP SET SET-POP key count 移除并返回集合中的元素
SET-GETMEMBER SET SET-GETMEMBER key 获取(不删除)集合中的一个元素
SET-MEMBERS SET SET-MEMBERS key 获取集合所有的元素
SET-MOVE SET SET-MOVE key newKey member [member ...] 将集合中的元素移动到另一个集合中
SET-RENAME SET SET-RENAME key newKey 重命名集合
SET-REM SET SET-REM key member [member ...] 删除集合中的元素
SET-UNIONSTORE SET SET-UNIONSTORE key newKey 将集合中的元素拷贝到另一个集合中
SET-DEL SET SET-DEL key [key...] 删除集合
SET-EXISTS SET SET-EXISTS key 查看集合key是否存在
SET-FLUSH SET SET-FLUSH 清除所有的集合
LIST-KEYS LIST LIST-KEYS 查看列表所有的key
LIST-LEN LIST LIST-LEN key 查看列表的长度
LIST-LPUSH LIST LIST-LPUSH key member [member ...] 向列表左侧插入元素
LIST-RPUSH LIST LIST-RPUSH key member [member ...] 向列表右侧插入元素
LIST-LPOP LIST LIST-LPOP key count 从列表左侧提取元素
LIST-BLPOP LIST LIST-BLPOP key count timeoutSec 阻塞式从列表左侧提取元素
LIST-RPOP LIST LIST-RPOP key count 从列表右侧提取元素
LIST-BRPOP LIST LIST-BRPOP key count timeoutSec 阻塞式从列表右侧提取元素
LIST-LPOPRPUSH LIST LIST-LPOPRPUSH key 从列表左侧取出元素放入右侧
LIST-RPOPLPUSH LIST LIST-RPOPLPUSH key 从列表右侧取出元素放入左侧
LIST-BLPOPRPUSH LIST LIST-BLPOPRPUSH key timeoutSec 阻塞式从列表左侧取出元素放入右侧
LIST-BRPOPLPUSH LIST LIST-BRPOPLPUSH key 阻塞式从列表右侧取出元素放入左侧
LIST-FLUSH LIST LIST-FLUSH 清除所有的列表

Line Editing

Line Editing

Line Editing

The following line editing commands are supported on platforms and terminals that Liner supports:

Keystroke Action
Ctrl-A, Home Move cursor to beginning of line
Ctrl-E, End Move cursor to end of line
Ctrl-B, Left Move cursor one character left
Ctrl-F, Right Move cursor one character right
Ctrl-Left, Alt-B Move cursor to previous word
Ctrl-Right, Alt-F Move cursor to next word
Ctrl-D, Del (if line is not empty) Delete character under cursor
Ctrl-D (if line is empty) End of File - usually quits application
Ctrl-C Reset input (create new empty prompt)
Ctrl-L Clear screen (line is unmodified)
Ctrl-T Transpose previous character with current character
Ctrl-H, BackSpace Delete character before cursor
Ctrl-W Delete word leading up to cursor
Ctrl-K Delete from cursor to end of line
Ctrl-U Delete from start of line to cursor
Ctrl-P, Up Previous match from history
Ctrl-N, Down Next match from history
Ctrl-R Reverse Search history (Ctrl-S forward, Ctrl-G cancel)
Ctrl-Y Paste from Yank buffer (Alt-Y to paste next yank instead)
Tab Next completion
Shift-Tab (after Tab) Previous completion

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL