当前位置:网站首页>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 |
边栏推荐
- JS to achieve smooth scrolling of pages or DOM elements
- Aircraft collision detection
- Hbuilder submission code
- RuntimeError: output with shape [1, 256, 256] doesn‘t match the broadcast shape [3, 256, 256]【报错】
- 迷你洗衣机触摸芯片-DLT8MA12TS-杰力科创
- Product name fuzzy search:
- Openstack login dashboard prompt authentication error
- 订单的提交
- PyGame aircraft war game background implementation
- Functions in JS and the use of DOM to obtain elements and event attributes
猜你喜欢

JDBC MySQL 02 data access and Dao mode

Talking about JVM (frequent interview)

瑞吉外卖笔记
MySQL create event execution task

Interviewer: what do you think is your biggest weakness?

连接查询和子查询
![[NPM] the](/img/ae/efccefae0323a1f6a425523e01d2ac.png)
[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

MySQL 05 stored procedure

多功能无线遥控艾灸仪芯片-DLTAP703SD

How to realize the full-text content retrieval of word, PDF and txt files?
随机推荐
[yuntu said] 249 mobile application security service - app's physical examination center, comprehensive testing, safe on the road!
内网的公司邮箱服务器怎么发外部邮件
JS tool - Cookie simple encapsulation
Quick access to website media resources
ValueError: Found input variables with inconsistent numbers of samples: [80019456, 26673152]【报错】
npm、cnpm 淘宝镜像
org.gradle.api. UncheckedIOException: Could not load properties for module ‘gradle-kotlin-dsl‘ from C
商品名称模糊搜索:
Interceptor拦截器
文件的上传和下载
What should I do if MySQL master-slave replication data is inconsistent?
C static method and non static method
Run the uniapp to the mobile phone (real machine debugging)
模仿线程扣除
Aircraft collision detection
订单的提交
Must the MySQL query column be consistent with the group by field?
电动加热护颈枕芯片-DLTAP703SC
Interceptor interceptor
[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