Redis shell Command Daquan

Source: Internet
Author: User
Tags echo message key string lua

Redis shell command Daquan (go from http://blog.mkfree.com/posts/5105432f975ad0eb7d135964

OYHK 2013-1-28 3:11:35 0 Reviews 783 views

APPEND key value appends a value to the key
AUTH Password Authentication Server
bgrewriteaof Asynchronous Rewrite Append file
Bgsave saving datasets to disk asynchronously
Blpop key [key ...] timeout is removed, and the first element in the list is obtained, or blocked until there is a usable
Brpop key [key ...] timeout is removed, and the last element in the list is obtained, or blocked until there is a usable
Brpoplpush Source Destination timeout pops up a list of values, pushes it to another list, and returns it, or blocks until there is a usable
Client KILL Ip:portkill The connection of a client
Client Listget The list of client connections
Config get parameter gets the value of the configuration parameter
Config Set parameter value sets the values of the configuration parameters
CONFIG Resetstat Reset Redistribution statistics reported using the Info command
Dbsize returns the number of keys in the current database
Debug OBJECT Key Gets the debug information of a key
DEBUG Segfault crashes the server
DECR key integer atomic minus 1
Decrby key decrement atom minus the specified integer
DEL key [Key ...] Delete a key
Discard discard all MULTI after the command is sent
echo message echoing the input string
EVAL script Numkeys key [key ...] arg [arg ...] Executing LUA scripts on the server side
Evalsha SHA1 Numkeys key [key ...] arg [arg ...] Executing LUA scripts on the server side
EXEC executes all MULTI after the command is issued
EXISTS key query a key exists
EXPIRE key seconds sets the number of expired seconds for a key
Expireat key timestamp set expiration time for a UNIX timestamp
Flushall emptying all databases
FLUSHDB emptying the current database
Get key gets the value of key
The value of the Getbit key offset return bit is stored at the offset of the key string value.
GETRANGE key start end gets a substring stored in a key
Getset key value sets the value of a key and gets the values before the setting
Hdel key field [field ...] Delete one or more hash domains
Hexists key field to determine whether a given domain exists in a hash set
Hget key field reads the value of Hasivic
Hgetall key reads all fields and values from a hash set
Hincrby key field increment adds the value of the specified field in the hash set to the given number
Hkeys key gets all the fields of the hash
Hlen Key gets the number of all fields in the hash
Hmget key field [field ...] Gets the value of the specified field within the hash
Hmset key field value [field value ...] Set the hash field value
Hset key field value set hash inside a field values
Hsetnx key field value sets the hash of one of the fields that is valid only if the field does not exist
Hvals key gets all the values of the hash
INCR Key performs atomic plus 1 operation
Incrby key increment executes an atom adds an integer
Info gets the server's details
Keys pattern finds all keys that match a given pattern
Lastsave time to get the last sync disk
LINDEX key index Gets an element through its index list
Linsert Key before| After pivot value inserts an element before or after another element in the list
Llen key Gets the length of the queue (List)
Lpop key from the left side of the queue an element of the team
Lpush key value [value ...] An element from the team to the left
Lpushx key value when a queue is present, an element is queued from the team to the left
Lrange key start stop gets the specified returned element from the list
Lrem Key count value removes an element from the list
LSET Key index value sets the values of an element within the queue
LTRIM key start stop trim to the list in the specified range
MGET key [Key ...] Get the value of all keys
Monitor real-time monitoring server
Move key DB moves one key to another database
MSET key value [key value ...] Set multiple key value
Msetnx key value [key value ...] Set multiple key value, only if key exists
Multi mark a transaction block start
OBJECT subcommand [arguments [arguments ...] Check for the internal redistribution object
PERSIST key to remove key expiration time
Pingping Server
Psubscribe pattern [pattern ...] Listen to publish messages that match channels of a given pattern
PUBLISH Channel Message publishes a message to the channel
Punsubscribe [pattern [pattern ...]] Stops publishing messages to a channel that matches a given pattern listen
Quit close connection, exit
Randomkey returns a random key
RENAME key Newkey Renaming a key
Renamenx key Newkey Rename a key, the new key must be a nonexistent key
Rpop key from the right side of the queue an element
Rpoplpush source destination Deletes the last element in the list, appends it to another list
Rpush key value [value ...] Enqueue an element from the right side of the queue
Rpushx key value Enqueue an element from the right side of the queue, only valid when the queue exists
Sadd key member [member ...] Add one or more elements to the collection (set)
Save sync data to disk
SCard Key gets the number of elements inside the collection
Script EXISTS script [script ...] Check existence of scripts in the script cache.
Script Flushremove All the scripts from the script cache.
Script Killkill The script currently in execution.
Script LOAD scriptload The specified Lua script into the script cache.
Sdiff key [Key ...] Get the element that the queue does not exist
Sdiffstore destination key [key ...] Gets the element that the queue does not exist and stores it in a key result set
Select Index Selection Database
Set key value sets the value of a key
Setbit key offset value set or clear offsets stored in key string values
Setex key seconds value is set to one of the key values and expires
Setnx key value is set by a key values only if the key does not exist
SETRANGE key offset value overrides the part of the key string that begins at the specified offset
Shutdown Close Service
SINTER key [Key ...] Get the intersection of two sets
Sinterstore destination key [key ...] Gets the intersection of two sets and stores it in a key result set
Sismember Key member determines that a given value is a member of a collection
Slaveof Host port Specifies the primary server for the current server
SLOWLOG subcommand [argument] managing the redistribution of slow query logs
Smembers Key gets all the keys inside the collection
Smove Source Destination member move a key inside the collection to another collection
SORT key [by pattern] [LIMIT offset count] [get pattern [get pattern ...]] [asc| DESC] [ALPHA] [STORE destination]
Queue, collection, ordered set ordering
SPOP key deletes and gets the elements inside a collection
Srandmember key gets a random key from the collection
Srem Key member [member ...] Remove one or more keys from the collection
STRLEN Key gets the number of keys for an ordered collection
SUBSCRIBE Channel [Channel ...] Hear a message about the way to publish
Sunion key [Key ...] Add multiple Sets
Sunionstore destination key [key ...] Add multiple sets and store them in a key result set
Sync internal commands for replication
Time returns the current server
TTL key gets the effective time of key
Type key gets the storage types of key
unsubscribe [Channel [channel ...]] Stop the message of the publishing channel to listen
Unwatch Canceling a transaction
WATCH key [Key ...] Lock key until the multi/exec command is executed
Zadd key score member [score] [member] adds one or more members to an ordered set, or an updated score if it already exists
Zcard Key gets the number of members in a sorted collection
Zcount Key min Max number of members and fractions in the given value range
Zincrby Key increment member The rating of a member in the sort setting
Zinterstore destination Numkeys key [key ...] [WEIGHTS weight [weight ...] [AGGREGATE sum| min| MAX] intersects multiple sorted sets, causing the sorting settings to be stored in a new key
Zrange key start stop [Withscores] returns the range of members in the sort setting, by exponential
Zrangebyscore key min Max [withscores] [LIMIT offset count] Returns the range of members in the sort set by the score
Zrank Key member determines the index of the member in the sorted collection
Zrem key member [member ...] Remove one or more members from the sorted collection
Zremrangebyrank key start stop all members of the sort set are removed in the given index
Zremrangebyscore Key min Max deletes a sorted setting for all members of a given score
Zrevrange key start stop [withscores] in the sorted set returns the member range, by index, ordered from score high to low
Zrevrangebyscore key Max min [withscores] [LIMIT offset count] Returns the member in the sort set range, by scoring, ordered from score high to low
Zrevrank Key member determines the exponent in the sorted set of the members, ordered from the score high to low
Zscore Key member gets the score of the member in the Sort settings related
Zunionstore destination Numkeys key [key ...] [WEIGHTS weight [weight ...] [AGGREGATE sum| min| MAX] Adds multiple sort sets and causes the sort settings to be stored in a new key

Redis shell Command Daquan

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.