BGREWRITEAOF

Asynchronously rewrite the append-only file

BGSAVE

Asynchronously save the dataset to disk

CLIENT KILL [ip:port] [ID client-id] [TYPE normal|slave|pubsub] [ADDR ip:port] [SKIPME yes/no]

Kill the connection of a client

CLIENT LIST

Get the list of client connections

CLIENT GETNAME

Get the current connection name

CLIENT PAUSE timeout

Stop processing commands from clients for some time

CLIENT SETNAME connection-name

Set the current connection name

COMMAND

Get array of Redis command details

More: http://redis.io/commands/command

COMMAND COUNT

Get total number of Redis commands

  1. 127.0.0.1:6379> COMMAND COUNT
  2. (integer) 163

More: http://redis.io/commands/command-count

COMMAND GETKEYS

Extract keys given a full Redis command

  1. 127.0.0.1:6379> COMMAND GETKEYS MSET a b c d e f
  2. 1) "a"
  3. 2) "c"
  4. 3) "e"
  5. 127.0.0.1:6379> COMMAND GETKEYS EVAL "not consulted" 3 key1 key2 key3 arg1 arg2 arg3 argN
  6. 1) "key1"
  7. 2) "key2"
  8. 3) "key3"
  9. 127.0.0.1:6379> COMMAND GETKEYS SORT mylist ALPHA STORE outlist
  10. 1) "mylist"
  11. 2) "outlist"

More: http://redis.io/commands/command-getkeys

COMMAND INFO command-name [command-name ...]

Get array of specific Redis command details

  1. 127.0.0.1:6379> COMMAND INFO get
  2. 1) 1) "get"
  3. 2) (integer) 2
  4. 3) 1) readonly
  5. 2) fast
  6. 4) (integer) 1
  7. 5) (integer) 1
  8. 6) (integer) 1

More: http://redis.io/commands/command-info

CONFIG GET parameter

Get the value of a configuration parameter

CONFIG REWRITE

Rewrite the configuration file with the in memory configuration

CONFIG SET parameter value

Set a configuration parameter to the given value

CONFIG RESETSTAT

Reset the stats returned by INFO

DBSIZE

Return the number of keys in the selected database

  1. 127.0.0.1:6379> DBSIZE
  2. (integer) 0
  3. 127.0.0.1:6379> SET foo hello
  4. OK
  5. 127.0.0.1:6379> DBSIZE
  6. (integer) 1
  7. 127.0.0.1:6379> MSET a 1 b 2 c 3
  8. OK
  9. 127.0.0.1:6379> DBSIZE
  10. (integer) 4

More: http://redis.io/commands/dbsizehttp://www.redis.cn/commands/dbsize.html

DEBUG OBJECT key

Get debugging information about a key

DEBUG SEGFAULT

Make the server crash

FLUSHALL

Remove all keys from all databases

More: http://redis.io/commands/flushallhttp://www.redis.cn/commands/flushall.html

FLUSHDB

Remove all keys from the current database

More: http://redis.io/commands/flushdbhttp://www.redis.cn/commands/flushdb.html

INFO [section]

Get information and statistics about the server

More: http://redis.io/commands/infohttp://www.redis.cn/commands/info.html

LASTSAVE

Get the UNIX time stamp of the last successful save to disk

  1. 127.0.0.1:6379> LASTSAVE
  2. (integer) 1443163307

More: http://redis.io/commands/lastsavehttp://www.redis.cn/commands/lastsave.html

MONITOR

Listen for all requests received by the server in real time

ROLE

Return the role of the instance in the context of replication

  1. 127.0.0.1:6379> ROLE
  2. 1) "master"
  3. 2) (integer) 0
  4. 3) (empty list or set)

More: http://redis.io/commands/role

SAVE

Synchronously save the dataset to disk

SHUTDOWN [NOSAVE] [SAVE]

Synchronously save the dataset to disk and then shut down the server

SLAVEOF host port

Make the server a slave of another instance, or promote it as master

SLOWLOG subcommand [argument]

Manages the Redis slow queries log

SYNC

Internal command used for replication

TIME

Return the current server time

  1. 127.0.0.1:6379> TIME
  2. 1) "1443239214"
  3. 2) "873649"

More: http://redis.io/commands/timehttp://www.redis.cn/commands/time.html

Redis 命令 - Server的更多相关文章

  1. 深入浅出 Redis client/server交互流程

    综述 最近笔者阅读并研究redis源码,在redis客户端与服务器端交互这个内容点上,需要参考网上一些文章,但是遗憾的是发现大部分文章都断断续续的非系统性的,不能给读者此交互流程的整体把握.所以这里我 ...

  2. redis命令总结

     Redis命令总结 redis 127.0.0.1:6379> info  #查看server版本内存使用连接等信息 redis 127.0.0.1:6379> client list  ...

  3. Redis命令大全&中文解释&在线测试命令工具&在线中文文档

    在线测试命令地址:http://try.redis.io/ 官方文档:http://redis.io/commands http://redis.io/documentation Redis 命令参考 ...

  4. Redis命令

    redis的常用命令主要分为两个方面.一个是键值相关命令.一个是服务器相关命令(redis-cli进入终端) 1.键值相关命令 keys * 取出当前所有的key exists name 查看n是否有 ...

  5. 执行大量的Redis命令,担心效率问题?用Pipelining试试吧~

    参考的优秀文章 Request/Response protocols and RTT 来源 原来,系统中一个树结构的数据来源是Redis,由于数据增多.业务复杂,查询速度并不快.究其原因,是单次查询的 ...

  6. redis命令详解

      redis中添加key value元素:set key value;       获取元素:get key ;   redis中添加集合:lpush key value1 value2 value ...

  7. REdis命令处理流程处理分析

    分析版本:REdis-5.0.4. REdis命令处理流程可分解成三个独立的流程(不包括复制和持久化): 1) 接受连接请求流程: 2) 接收请求数据和处理请求流程,在这个过程并不会发送处理结果给Cl ...

  8. redis命令手册

    Redis 键(key) 命令 命令 描述 Redis DEL 命令 该命令用于在 key 存在是删除 key. Redis Dump 命令 序列化给定 key ,并返回被序列化的值. Redis E ...

  9. 【转帖】 redis 命令 From https://www.cnblogs.com/zhouweidong/p/7550717.html

    redis命令详解   redis中添加key value元素:set key value;       获取元素:get key ;   redis中添加集合:lpush key value1 va ...

随机推荐

  1. ADUM1201在隔离RS232中的应用 【瓦特芯收藏】

    ADUM1201在隔离RS232中的应用 引言: RS-232是PC机与工业通信中应用最广泛的一种串行接口.RS-232接口最初是由美国EIA(电子工业联合会)规定的用于计算机与终端设备之间通讯的一种 ...

  2. ural 1303 Minimal Coverage(贪心)

    链接: http://acm.timus.ru/problem.aspx?space=1&num=1303 按照贪心的思想,每次找到覆盖要求区间左端点时,右端点最大的线段,然后把要求覆盖的区间 ...

  3. Codeforces Round #219 (Div. 1)(完全)

    戳我看题目 A:给你n个数,要求尽可能多的找出匹配,如果两个数匹配,则ai*2 <= aj 排序,从中间切断,分成相等的两半后,对于较大的那一半,从大到小遍历,对于每个数在左边那组找到最大的满足 ...

  4. [置顶] 函数传递不定参数理解-c语言

    感性认识 Typedef char *va_list;/*这个在<stdatg.h>中有定义*/ #define va_start(ap,p) (ap=(char*)(&(p)+1 ...

  5. 【M8】了解各种不同意义的new和delete

    1.首先考虑new operator,new operator 可以认为做了三件事情:a.调用operator new分配一块内存:b.在这块内存上调用构造方法构造对象:返回指针. 2.operato ...

  6. Android监听SD卡文件变化

    今天再一次使用到FileObserver,上一次使用还是很久之前了.总结一下FileObserver里留的一些“坑”   1.FileObserver只能监听一个目录下的“一级”子文件,也就是说Fil ...

  7. Android腾讯微博开发之随机字符串与签名实现

    Android腾讯微博开发入门之随机字符串与签名实现   直接上代码   1.Utils类,包括签名和随机字符串   import java.util.Random; import javax.cry ...

  8. IOS 日期选择

    传统方式 一般情况下弹出日期选择的场景是:用户点击UITextField弹出日期选择,关键代码如下: 点击UITextField弹出日期选择 1 2 3 UITextField *textField; ...

  9. 理解WebKit和Chromium: 调试Android系统上的Chromium

    转载请注明原文地址:http://blog.csdn.net/milado_nju 1. Android上的调试技术 在Android系统上,开发人员能够使用两种不同的语言来开发应用程序,一种是Jav ...

  10. C++中的inline函数

    内联函数: () 内联函数定义和作用: 将一个函数声明为inline,那么函数就成为内联函数.内联函数通常就是它在程序中每个调用点上“内联地”展开.从定义上看,内联函数跟一般函数不一样,一般函数调用的 ...