当前位置:网站首页>Ridis command notes
Ridis command notes
2022-07-27 18:56:00 【Get lazy】
KEYS — Redis Command Reference
| Key( key ) | meaning | How to use |
|---|---|---|
| DEL | Delete the given one or more key | del key del key1 key2 ..... |
| DUMP | ||
| EXISTS | Check the given key Whether there is | exists key |
| EXPIRE | For a given key Set the lifetime , When key expires ( Survival time: 0 ), It will be automatically deleted | expire key 30 #30 second |
| EXPIREAT | For a given key Set timestamp | expireat cache 1355292000 # This key Will be in 2012.12.12 Be overdue # Seconds per unit |
| KEYS | Query all matching key | keys *o* |
| MIGRATE | ||
| MOVE | Will be the current database of key Move to a given database db among | move value key2 # take value Move to key2 |
| OBJECT | ||
| PERSIST | Remove a given key Survival time | persist key |
| PEXPIRE | For a given key Set the lifetime | pexpire key 30 #30 millisecond |
| PEXPIREAT | For a given key Set timestamp | pexpireat mykey 1555555555005 # Milliseconds |
| PTTL | Returns... In milliseconds key The remaining lifetime of | pttl key # Unit millisecond |
| RANDOMKEY | Random return from the current database ( Don't delete ) One key | randomkey |
| RENAME | Change the name | rename key newkey # take key Name to newkey |
| RENAMENX | Change the name | rename key newkey # If and only if newkey When it doesn't exist, it will key Renamed as newkey |
| RESTORE | ||
| SORT | Return sequence table 、 aggregate 、 Ordered set | Ascending sort key Descending sort key desc |
| TTL | Returns... In seconds key The remaining lifetime of | ttl key # Unit second |
| TYPE | return key The type of value stored | type key |
| SCAN |
| String( character string ) | Ah, really |
| APPEND | |
| BITCOUNT | |
| BITOP | |
| DECR | |
| DECRBY | |
| GET | |
| GETBIT | |
| GETRANGE | |
| GETSET | |
| INCR | |
| INCRBY | |
| INCRBYFLOAT | |
| MGET | |
| MSET | |
| MSETNX | |
| PSETEX | |
| SET | |
| SETBIT | |
| SETEX | |
| SETNX | |
| SETRANGE | |
| STRLEN |
| Hash( Hashtable ) | |
| HDEL | |
| HEXISTS | |
| HGET | |
| HGETALL | |
| HINCRBY | |
| HINCRBYFLOAT | |
| HKEYS | |
| HLEN | |
| HMGET | |
| HMSET | |
| HSET | |
| HSETNX | |
| HVALS | |
| HSCAN |
| List( list ) | |
| BLPOP | |
| BRPOP | |
| BRPOPLPUSH | |
| LINDEX | |
| LINSERT | |
| LLEN | |
| LPOP | |
| LPUSH | |
| LPUSHX | |
| LRANGE | |
| LREM | |
| LSET | |
| LTRIM | |
| RPOP | |
| RPOPLPUSH | |
| RPUSH | |
| RPUSHX |
| Set( aggregate ) | |
| SADD | |
| SCARD | |
| SDIFF | |
| SDIFFSTORE | |
| SINTER | |
| SINTERSTORE | |
| SISMEMBER | |
| SMEMBERS | |
| SMOVE | |
| SPOP | |
| SRANDMEMBER | |
| SREM | |
| SUNION | |
| SUNIONSTORE | |
| SSCAN |
| SortedSet( Ordered set ) | |
| ZADD | |
| ZCARD | |
| ZCOUNT | |
| ZINCRBY | |
| ZRANGE | |
| ZRANGEBYSCORE | |
| ZRANK | |
| ZREM | |
| ZREMRANGEBYRANK | |
| ZREMRANGEBYSCORE | |
| ZREVRANGE | |
| ZREVRANGEBYSCORE | |
| ZREVRANK | |
| ZSCORE | |
| ZUNIONSTORE | |
| ZINTERSTORE | |
| ZSCAN |
边栏推荐
- LeetCode 刷题 第一天
- Arrays and objects in JS
- Typescript installation
- Full automatic breast pump chip dltap703sd
- Filebeat.yml configuration file about the configuration of multiple services
- JDBC MySQL 01 JDBC operation MySQL (add, delete, modify and query)
- MySQL 06 transaction, view, index, backup and recovery
- Imitation thread deduction
- C static method and non static method
- Hash、Set、List、Zset、BitMap、Scan
猜你喜欢

js实现简易表单验证与全选功能

Commodity comment information and comment information classification

10 SQL optimization schemes summarized by Alibaba P8 (very practical)
MySQL create event execution task

百度地图鹰眼轨迹服务

Log4j epic loopholes, big companies like jd.com have been recruited

Interviewer: what do you think is your biggest weakness?

Matplotlib (basic usage)

Login page tablelayout

Leetcode brushes questions the next day
随机推荐
Use mobaxtermto establish a two-tier springboard connection
Quick access to website media resources
Matplotlib(基本用法)
[NPM] the "NPM" item cannot be recognized as the name of cmdlets, functions, script files or runnable programs. Please check the spelling of the name. If the path is included, make sure the path is co
Talking about JVM (frequent interview)
飞机大战英雄出场加子弹实现
npm、cnpm 淘宝镜像
Hash、Set、List、Zset、BitMap、Scan
The hero of the aircraft war comes out with bullets
Here are all the MySQL interview questions you can't expect (the latest version of 2022)
Order timeout cancellation and commodity query by category
TS learning notes interface
Acquisition data transmission mode and online monitoring system of vibrating wire wireless acquisition instrument for engineering instruments
20000 words + 30 pictures | what's the use of chatting about MySQL undo log, redo log and binlog?
js实现简易表单验证与全选功能
Led learning eye protection table lamp touch chip-dlt8t10s-jericho
【npm】 无法将“npm”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正确,然后再试一次。
Runtimeerror: output with shape [1, 256, 256] doesn't match the broadcast shape [3, 256, 256] [error]
Collection of software design suggestions of "high cohesion and low coupling"
TS study notes class