Redis (2.8.3) command Learning-Server

Source: Internet
Author: User

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 F1) "a" 2) "C" 3) "E" 127.0.0.1:6379> COMMAND getkeys EVAL "not consulte D "3 key1 key2 key3 arg1 arg2 arg3 argN1)" Key1 "2)" Key2 "3)" Key3 "127.0.0.1:6379> COMMAND getkeys SORT mylist ALPHA STO RE outlist1) "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 get1) 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) 0127.0.0.1:6379> SET foo hellook127.0.0.1:6379> dbsize (integer) 1127.0.0.1:6379> MSET a 1 B 2 c 3ok127.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> ROLE1) ("Master" 2) (integer) (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> TIME1) "1443239214" 2) "873649"

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

Redis (2.8.3) command Learning-Server

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.