当前位置:网站首页 > 技术博客 > 正文

redis rdb原理



usage: rdb [options] /path/to/dump.rdb  Example : rdb --command json -k "user.*" /var/redis/6379/dump.rdb  positional arguments: -- 要处理的dump文件 dump_file RDB Dump file to process optional arguments: -- 帮助 -h, --help show this help message and exit  -- 要处理的命令,-c后的有效参数为:json, diff,justkeys, justkeyvals, memory,protocol  -c CMD, --command CMD Command to execute. Valid commands are json, diff, justkeys, justkeyvals, memory and protocol -- 输出文件  -f FILE, --file FILE Output file -- 数据库号,可以提供多个数据库。如果未指定,则包括所有数据库。 -n DBS, --db DBS Database Number. Multiple databases can be provided. If not specified, all databases will be included. -- 要导出的key。这可以是一个正则表达式 -k KEYS, --key KEYS Keys to export. This can be a regular expression -- key不导出。这可以是一个正则表达式 -o NOT_KEYS, --not-key NOT_KEYS Keys Not to export. This can be a regular expression -- 解析的数据类型。可能的值为string,hash,set,sortedset,list。可以输入多种类型提供。如果未指定,则为所有数据类型 -t TYPES, --type TYPES Data types to include. Possible values are string, hash, set, sortedset, list. Multiple typees can be provided. If not specified, all data types will be returned -- 将key的内存输出限制为大于或等此值(以字节为单位) -b BYTES, --bytes BYTES Limit memory output to keys greater to or equal to this value (in bytes) -- 将内存按大小输出前N个key  -l LARGEST, --largest LARGEST Limit memory output to only the top N keys (by size) -- 将字符串转义为编码:raw(默认),print,utf8或base64。 -e {raw,print,utf8,base64}, --escape {raw,print,utf8,base64} Escape strings to encoding: raw (default), print, utf8, or base64. -- 使用command protocol参数,从所有键中删除到期的key  -x, --no-expire With protocol command, remove expiry from all keys -- 使用command protocol参数,将N秒添加到key的到期时间 -a N, --amend-expire N With protocol command, add N seconds to key expiry time

版权声明


相关文章:

  • 逻辑回归模型的公式2025-03-07 17:01:01
  • flow工具2025-03-07 17:01:01
  • flex词法分析器使用2025-03-07 17:01:01
  • udp的发送端口和接收端口2025-03-07 17:01:01
  • c语言三维数组定义和赋值2025-03-07 17:01:01
  • seq2seq模型存在哪些问题2025-03-07 17:01:01
  • 微信小程序客服怎么设置2025-03-07 17:01:01
  • windows7无法打开exe2025-03-07 17:01:01
  • java中hashmap的方法2025-03-07 17:01:01
  • sqlmap的基本命令使用2025-03-07 17:01:01