Redis 命令 - Server
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
127.0.0.1:6379> COMMAND COUNT
(integer) 163
More: http://redis.io/commands/command-count
COMMAND GETKEYS
Extract keys given a full Redis command
127.0.0.1:6379> COMMAND GETKEYS MSET a b c d e f
1) "a"
2) "c"
3) "e"
127.0.0.1:6379> COMMAND GETKEYS EVAL "not consulted" 3 key1 key2 key3 arg1 arg2 arg3 argN
1) "key1"
2) "key2"
3) "key3"
127.0.0.1:6379> COMMAND GETKEYS SORT mylist ALPHA STORE outlist
1) "mylist"
2) "outlist"
More: http://redis.io/commands/command-getkeys
COMMAND INFO command-name [command-name ...]
Get array of specific Redis command details
127.0.0.1:6379> COMMAND INFO get
1) 1) "get"
2) (integer) 2
3) 1) readonly
2) fast
4) (integer) 1
5) (integer) 1
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
127.0.0.1:6379> DBSIZE
(integer) 0
127.0.0.1:6379> SET foo hello
OK
127.0.0.1:6379> DBSIZE
(integer) 1
127.0.0.1:6379> MSET a 1 b 2 c 3
OK
127.0.0.1:6379> DBSIZE
(integer) 4
More: http://redis.io/commands/dbsize, http://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/flushall, http://www.redis.cn/commands/flushall.html
FLUSHDB
Remove all keys from the current database
More: http://redis.io/commands/flushdb, http://www.redis.cn/commands/flushdb.html
INFO [section]
Get information and statistics about the server
More: http://redis.io/commands/info, http://www.redis.cn/commands/info.html
LASTSAVE
Get the UNIX time stamp of the last successful save to disk
127.0.0.1:6379> LASTSAVE
(integer) 1443163307
More: http://redis.io/commands/lastsave, http://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
127.0.0.1:6379> ROLE
1) "master"
2) (integer) 0
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
127.0.0.1:6379> TIME
1) "1443239214"
2) "873649"
More: http://redis.io/commands/time, http://www.redis.cn/commands/time.html
Redis 命令 - Server的更多相关文章
- 深入浅出 Redis client/server交互流程
综述 最近笔者阅读并研究redis源码,在redis客户端与服务器端交互这个内容点上,需要参考网上一些文章,但是遗憾的是发现大部分文章都断断续续的非系统性的,不能给读者此交互流程的整体把握.所以这里我 ...
- redis命令总结
Redis命令总结 redis 127.0.0.1:6379> info #查看server版本内存使用连接等信息 redis 127.0.0.1:6379> client list ...
- Redis命令大全&中文解释&在线测试命令工具&在线中文文档
在线测试命令地址:http://try.redis.io/ 官方文档:http://redis.io/commands http://redis.io/documentation Redis 命令参考 ...
- Redis命令
redis的常用命令主要分为两个方面.一个是键值相关命令.一个是服务器相关命令(redis-cli进入终端) 1.键值相关命令 keys * 取出当前所有的key exists name 查看n是否有 ...
- 执行大量的Redis命令,担心效率问题?用Pipelining试试吧~
参考的优秀文章 Request/Response protocols and RTT 来源 原来,系统中一个树结构的数据来源是Redis,由于数据增多.业务复杂,查询速度并不快.究其原因,是单次查询的 ...
- redis命令详解
redis中添加key value元素:set key value; 获取元素:get key ; redis中添加集合:lpush key value1 value2 value ...
- REdis命令处理流程处理分析
分析版本:REdis-5.0.4. REdis命令处理流程可分解成三个独立的流程(不包括复制和持久化): 1) 接受连接请求流程: 2) 接收请求数据和处理请求流程,在这个过程并不会发送处理结果给Cl ...
- redis命令手册
Redis 键(key) 命令 命令 描述 Redis DEL 命令 该命令用于在 key 存在是删除 key. Redis Dump 命令 序列化给定 key ,并返回被序列化的值. Redis E ...
- 【转帖】 redis 命令 From https://www.cnblogs.com/zhouweidong/p/7550717.html
redis命令详解 redis中添加key value元素:set key value; 获取元素:get key ; redis中添加集合:lpush key value1 va ...
随机推荐
- HDU 4489 The King’s Ups and Downs (DP+数学计数)
题意:给你n个身高高低不同的士兵.问你把他们按照波浪状排列(高低高或低高低)有多少方法数. 析:这是一个DP题是很明显的,因为你暴力的话,一定会超时,应该在第15个时,就过不去了,所以这是一个DP计数 ...
- 任务分发系统gearman
1 Gearman是什么 Gearman Job Server@http://gearman.org/. Gearman 是一个任务分发系统,它提供了一个分发框架,能够分发某类任务到更适合处理这类任务 ...
- Unity3D之Mecanim动画系统学习笔记(三):Animation View
动画组件之间的关系 我们先看一张图: 这里我们可以看到,我们在GameObject之上绑定的Animator组件是控制模型进行动画播放的. 而其属性Controller则对应一个Animator Co ...
- SQL自定义函数split分隔字符串
SQL自定义函数split分隔字符串 一.F_Split:分割字符串拆分为数据表 Create FUNCTION [dbo].[F_Split] ( @SplitString nvarchar(max ...
- window.parent != window 解决界面嵌套问题
页面在被嵌套的时,效果:,,如果用户点击“刷新”,该问题即可解决. 如果想通过代码解决的话,这个问题属于客户端的问题,不是服务器端的问题. 如果直接写:window.location.href = “ ...
- google域名邮箱申请 gmail域名邮箱申请(企业应用套件)指南
近期一直有朋友问我怎么注冊域名邮箱,于是整理出来,贴出来吧.已经非常具体了,你能够直接对比着做了.什么是域名邮箱? 假设你有一个自己的域名,通过对域名dns进行设置,创建以自己的域名作为邮箱后缀的邮箱 ...
- linux重启oracle 各种方法
在linux下重启oracle数据库及监听器总结: 方法1: 用root以ssh登录到linux,打开终端输入以下命令: cd $ORACLE_HOME #进入到oracle的安装目录 dbsta ...
- stm32上的Lava虚拟机开发进度汇报(4)
这段时间颓废了,基本上没在弄这个东西. 主要是因为前段时间把代码基本上写完之后,但是问题一大堆,除了自己写的几个简单测试程序,其他现成的东西没有一个是能正常运行的,很是郁闷,也不知道哪里有错误,所以放 ...
- CDOJ 486 Good Morning 傻逼题
Good Morning Time Limit: 20 Sec Memory Limit: 256 MB 题目连接 http://acm.uestc.edu.cn/#/problem/show/486 ...
- 在WebClient中使用post[发送数据]
很多时候,我们需要使用C#中的WebClient 来收发数据,WebClient 类提供向 URI 标识的任何本地.Intranet 或 Internet 资源发送数据以及从这些资源接收数据的公共方法 ...