aerospike工具集——Command-Line Utility (cli)
来源:互联网 发布:vod电影点播软件 编辑:程序博客网 时间:2024/06/05 13:47
Command-Line Utility (cli)
用法
对aerospike集群执行一个命令。
cli OPTIONS
Options
-t, --target <host:port>
查询一个集群节点(host:port)
默认: 127.0.0.1:3000
-h, --host <host>
主机集群节点的查询
默认: 127.0.0.1
-p, --port <port>
端口号
默认: 3000
-U, --user <user name>用户名
User name to access record, required when using the enterprise security feature.
-P, --password [password]密码
Password to access record, required when using the enterprise security feature.
-o, --operand <operand>
数据库操作, note that set and put are equivalent: get, set, put, delete
默认: get
-n --namespace <ns>
namespace (命名空间)
默认: test
-s --set <set>
the set the key belongs in
默认: ""
-k, --key
key - 必须要设置,没有默认值
--d64, --digest-base64
Interpret key as a base64 digest
--d16, --digest-base16, --digest-hex
Interpret key as a base16 (hex) digest
-i, --integer-key, --key-integer
True if key is a integer
-b, --bin
name of the bin
默认: ""
-e, --recordttl <ttl>
记录的过期时间
默认: None
-v, --value
value
--verbose
make the request verbose
例如
Set an object with a key string of "server01" and a value of "This is my hostname" in the namespace "users"
server01为key,执行的操作为set,命名空间为users,值为 "This is my hostname"
cli -o set -n users -k server01 -v "This is my hostname"
Get a records with a key of "server01" from the namespace "users"
根据key:server01和命名空间users ,get记录
cli -o get -n users -k server01
Note that this tool is meant to be used for basic validation only. Aerospike is not intended to be used through the command line tool. cli creates a new connection pool for every transaction which is very inefficient.
aerospike提供的cli工具除了cli之外还有ascli,aql等包括同样功能的操作,我觉得可以根据自己的喜欢选择一种熟练操作。
- aerospike工具集——Command-Line Utility (cli)
- aerospike工具集——Aerospike Information Tool (asinfo)
- ASMCMD - ASM command line utility
- ASM Command-Line Utility(ASMCMD)
- aerospike工具集——ascli
- aerospike工具集——aql
- aerospike工具集——AMC(管理控制台)
- aerospike工具集——AMC(管理控制台)
- 简单的CLI(command line interface)
- 3DSlicer13:Command Line Interface(CLI)
- A command-line utility for poking MII PHYs (from Github)
- 制作一个linux的CLI(command line interface)
- Xcode3.2.X 中找不到Mac OS X - Command Line Utility - Foundation Tool
- How do I import a new Java CA cert without using the keytool command line utility?
- 用 OptionParser 构建 Command Line 工具
- command line tools工具无法调用
- Xcode Command Line Tools(命令行工具)
- 用 OptionParser 构建 Command Line 工具
- zhphp framework (四)动态加载应用程序产量,方便任何程序代码重构
- JSON使用TypeNameHandling序列化与反序列化.NET类型和声明类型
- QMutex 类学习笔记
- ubuntu安装openssh-server报依赖错误
- show_ip.sh
- aerospike工具集——Command-Line Utility (cli)
- 王海盯上京东,假货问题是本质
- JAVA性能调优之基本调优策略和手段
- Word文档中插入高亮代码完美实现
- RecyclerView Item 的点击事件
- zhphp framework (五) 框架加载类
- No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'
- nuget个人常用命令整理
- mysql 存储过程 汉字取拼音或者首字母