The Redis key (Key) command command describes the Redis DEL command, which is used to delete key in key presence. The Redis Dump command serializes the given key and returns the serialized value. The Redis EXISTS command checks to see if a given key exists. Redis Expire command seconds sets the expiration time for the given key. The Redis expireat command expireat is similar to EXPIRE and is used to set the expiration time for the key. The difference is that the time parameter that the Expireat command accepts is the UNIX timestamp (Unix timestamp). The Redis pexpireat command sets the expiration time of a key in milliseconds. The Redis pexpireat command sets the timestamp of the key expiration (Unix timestamp) to find all Keys that conform to the given mode (pattern) in milliseconds redis the key command. The Redis move command moves the key of the current database to the given database db. Redis the PERSIST command removes the expiration time of the key, the key is persisted. The Redis pttl command returns the remaining expiration time for the key in milliseconds. The Redis TTL command returns the remaining lifetime of the given key (TTL, time to live) in seconds. The Redis randomkey command returns a key randomly from the current database. The Redis Rename command modifies the name of the key Redis Renamenx command to rename the key to Newkey only if the Newkey does not exist. The Redis type command returns the type of the value stored by the key. Redis string (String) command command describes the Redis set command to set the value of the specified key Redis get command to obtain the value of the specified key. The Redis getrange command returns the substring of the string value in the key redis the Getset command sets the value for the given key and returns the old value of the key. Redis the Getbit command to the string value stored by the key, gets the bit on the specified offset. The Redis mget command gets the value of all (one or more) given key. RedisThe setbit command sets or clears the bits (bit) on the specified offset for the string value stored by the key. The Redis Setex command Associates value values to key and sets the expiration time of the key to seconds (in seconds). The Redis setnx command sets the value of the key only if the key does not exist. The Redis Setrange command uses the value argument to write down the string value stored by the fixed key, starting with offset offsets. The Redis Strlen command returns the length of the string value stored by the key. The Redis mset command sets one or more key-value pairs at the same time. The Redis msetnx command sets one or more key-value pairs at the same time, if and only if all the given keys do not exist. Redis Psetex Command This command is similar to the Setex command, but it sets the lifetime of the key in milliseconds, rather than in seconds, as in the Setex command. The Redis Incr command adds one of the numeric values stored in the key. The Redis Incrby command adds the value stored by the key to the given increment value (increment). The Redis incrbyfloat command adds the value stored by the key to the given floating-point increment value (increment). Redis DECR command to reduce the number of values stored in the key by one. Redis the value stored by the Decrby command key minus the given decrement (decrement). Redis Append Command If the key already exists and is a string, the Append command appends value to the end of the key's original value. The Redis Hash Command command describes the Redis hdel command to delete one or more hash table fields redis the hexists command to see if the specified field exists in the hash table key. Redis hget command Gets the value that is stored in the specified field in the hash table/td> Redis hgetall command gets all the fields and values for the specified key in the hash table redis the Hincrby command adds an increment to the integer value of the specified field in the Hashtable key Incre ment. The Redis hincrbyfloat command adds an increment increment to the floating-point number of the specified field in the hash table key. Redis hkeys Command gets allfields in a hash table Redis hlen command Gets the number of fields in the hash table Redis hmget command Gets the value of all the given fields redis the command to set multiple Hmset (field-value) pairs to the hash key at the same time. The Redis hset command sets the value of the fields field in the hash table key to values. The Redis hsetnx command sets the value of the hash table field only if the field fields do not exist. The Redis hvals command gets all the values in the hash table redis List command command description Redis blpop command to move out and get the first element of the list, if no element will block the list until the wait time out or discover the element that can pop up. The Redis brpop command moves out and gets the last element of the list, if no element blocks the list until it waits for a timeout or discovers that the element can be ejected. The Redis brpoplpush command pops a value from the list, inserts the pop-up element into another list, and returns it, if no elements of the list block the list until the wait time out or the discovery of a pop-up element. The Redis lindex command retrieves the elements of the list through the index Redis the Linsert command before or after the element in the list redis the Llen command gets the list length Redis lpop command moves out and gets the first element of the list Redis Command inserts one or more values into the list header Redis lpushx command inserts one or more values into an existing list header redis The Lrange command gets the element in the specified range of the list Redis lrem command removes the list element Redis Lset command by index Redis the value of a list element the Ltrim command trims a list (trim), which means that the list retains only the elements within the specified range, and elements that are not within the specified range are deleted. The Redis rpop command removes and gets the last element of the list Redis Rpoplpush command removes the last element of the list, adds the element to another list, and returns the Redis rpush command adds one or more values to the list Redis rpushx command is Existing list add value Redis collection (SET) command command description Redis sadd command Add one or more members to the collection Redis scard command get the number of members of the collection Redis Sdiff command returnReturns the difference set for a given collection Redis Sdiffstore command to return the difference set for a given set and store it in destination Redis sinter command returns the intersection of all the given sets Redis the Sinterstore command returns the intersection of the given collection and stored in destination Redis sismember command to determine whether member elements are members of the collection key Redis smembers command returns all members of the collection Redis Smove command converts the member element from so The Urce collection moves to the destination collection Redis spop command removes and returns a random element in the collection Redis srandmember command returns one or more random numbers in the collection Redis Srem command removes one or more members of the collection Redi The s sunion command returns the set of all the given sets Redis Sunionstore command The collection of all the given sets is stored in the destination set Redis Sscan ordered set of elements in the iteration set Redis ordered collection (sorted set) The command description Redis zadd command adds one or more members to the ordered collection, or updates the scores of existing members Redis Zcard command gets the number of members of an ordered set Redis the Zcount command calculates the number of members that specify interval fractions in an ordered set Redis ZINCR To compute the intersection of a given one or more ordered sets and store the result set in the new ordered set key by adding an incremental increment redis the fraction of the specified member in the ordered collection of the command Redis zlexcount command evaluates the specified word in an ordered collection Number of members in the code interval the Redis zrange command returns an ordered set of members within a specified interval through the index interval redis zrangebylex command returns the members of an ordered set through the dictionary interval redis zrangebyscore command returns an ordered set of specified intervals by fractions Member Redis zrank command returns the index of a specified member in an ordered collection Redis zrem command removes one or more members in an ordered collection Redis Zremrangebylex command removes all members of a given dictionary interval in an ordered set Redis Zremrang Ebyrank command to remove a given ranking area in an ordered collectionAll members of the Redis zremrangebyscore command removes all members of a given fractional interval in an ordered set Redis zrevrange command returns the members of a specified interval in an ordered set, by index, the score from the high end Redis The Zrevrangebyscore command returns the members of the specified fractional interval in an ordered set, ranking from high to low redis the Zrevrank command returns the rank of the specified member in an ordered set, with ordered set members descending by fractional value (from large to small) Redis zscore command Returns an ordered set, in which the member's fractional value redis the Zunionstore command to compute the set of one or more ordered sets, and is stored in the new key Redis the elements in the ordered collection of Zscan command iterations (including element members and element scores) Redis Hyperloglog The command command describes the Redis pfadd command to add the specified element to the Hyperloglog. The Redis pfcount command returns the cardinality estimate for the given Hyperloglog. The Redis pgmerge command merges multiple hyperloglog into one hyperloglog redis Publish subscription command commands describe the Redis psubscribe command to subscribe to one or more channels that conform to a given mode. Redis Pubsub command to view subscription and publishing system status. The Redis Publish command sends information to the specified channel. Redis punsubscribe command to unsubscribe from all channels in a given mode. The Redis Subscribe command subscribes to information for one or more channels given. Redis unsubscribe command refers to unsubscribe from a given channel. The Redis Transaction Command command describes the Redis discard command to cancel the transaction and discard all commands within the transaction block. The Redis Exec command executes commands within all transaction blocks. The Redis Multi command marks the beginning of a transaction block. The Redis unwatch command cancels the WATCH command from monitoring all key. The Redis Watch command monitors one or more key keys, and the transaction is interrupted if the key is changed by another command before the transaction is executed. The Redis Script Command command describes the Redis Eval command to execute the Lua script. The Redis Evalsha command executes the Lua script. Redis ScThe Ript Exists command to see if the specified script has been saved in the cache. The Redis Script Flush command removes all scripts from the script cache. The Redis script kill command kills the currently running Lua scripts. The Redis Script Load command adds scripting scripts to the script cache, but does not execute the script immediately. The Redis Connection command command describes Redis Auth command to verify that the password is correct redis the Echo command print string Redis Ping to see if the service is running Redis Quit command to close the current connection Redis Select command cut Switch to the specified database Redis server command
Command Description Redis bgrewriteaof command asynchronously executes a aof (appendonly file) file rewrite operation Redis bgsave command in the background asynchronously saves the current database data to disk Redis Client Kill command shutdown Client Connection Redis Client List command gets the list of clients connected to the server Redis the Getname command gets the name of the connection Redis client Pause command terminates the command from the client at a specified time Redis The Client setname command sets the name of the current connection Redis Cluster slots command gets the mapped array of cluster Nodes Redis command command gets the Redis Order Details array redis commands Count command get Total number of REDIS commands redis command getkeys commands get all keys for a given command Redis time command returns the current server times redis Command Info command gets an array of the specified Redis commands description Redis Con The fig get command gets the value of the specified configuration parameter redis Config rewrite command overwrites the redis.conf profile specified when the Redis server is started modifies the Redis Config Set command to modify the Redis configuration parameters without heavy The Redis Config resetstat command resets some statistics in the INFO command redis dbsize command returns the number of keys in the current database redis Debug Object command gets debug information for key Redis D Ebug segfault command let Redis service crash redis flushall command Delete all key Redis commands for all databases delete all key flushdb Info commands for the current database to get all kinds of Redis server Information and Statistics Redis lastsave command returns the last time Redis successfully saved data to disk, in UNIX timestamp format the Redis Monitor command prints out the commands that the Redis server receives, debugging with Redis role command returns the role that the master and slave instance belongs to Redis Save command to save data asynchronously to hard disk Redis Shutdown command asynchronously saves data to the hard disk and shuts down the server Redis slaveof command to convert the current server to the secondary server for the specified server (slave server) redis showlog command Management Redis Slow log redis Sync command internal commands for replication functionality (replication) from: http://www.redis.net.cn/order/