dbsize
命令实现的时间复杂度为 O(n),执行命令时需要遍历当前 DB 的所有 Key ,请谨慎使用。{ckv_plus_pub_sub}_patterns
,该 Key 用于支持 pub、sub 订阅功能,如果您需要使用订阅功能,请不要删除该 Key,否则订阅会失效。volatile-lru
,或者关闭淘汰机制,对应参数为maxmemory-policy
。redis-cli -h IP地址 -p 端口 -a crs-bkuza6i3:abcd1234
。connection 族 | geo 族 | hashes 族 | hyperloglog 族 | keys 族 | lists 族 | pub/sub 族 | server 族 |
auth | geoadd | hdel | pfadd | del | lindex | psubscribe | command |
echo | geohash | hexists | pfcount | scan | linsert | pubsub | dbsize |
ping | geopos | hget | pfmerge | exists | llen | publish | info |
quit | geodist | hgetall | - | expire | lpop | punsubscribe | time |
select | georadius | hincrby | - | expireat | lpush | subscribe | - |
- | georadiusbymember | hincrbyfloat | - | keys | lpushx | unsubscribe | - |
- | - | hkeys | - | type | lrange | - | - |
- | - | hlen | - | move | lrem | - | - |
- | - | hmget | - | ttl | lset | - | - |
- | - | hmset | - | persist | ltrim | - | - |
- | - | hset | - | pexpire | rpop | - | - |
- | - | hsetnx | - | pexpireat | rpoplpush | - | - |
- | - | hstrlen | - | pttl | rpush | - | - |
- | - | hvals | - | randomkey | rpushx | - | - |
- | - | hscan | - | rename | - | - | - |
- | - | - | - | renamenx | - | - | - |
- | - | - | - | sort | - | - | - |
sets 族 | sorted sets 族 | strings 族 | transactions 族 | scripting 族 |
sadd | zadd | append | discard | eval |
scard | zcard | bitcount | exec | script debug |
sdiff | zcount | bitop | multi | script exists |
sdiffstore | zincrby | bitpos | unwatch | script flush |
sinter | zinterstore | decr | watch | script kill |
sinterstore | zlexcount | decrby | - | script load |
sismember | zrange | get | - | - |
smembers | zrangebylex | getbit | - | - |
smove | zrangebyscore | getrange | - | - |
spop | zrank | getset | - | - |
srandmember | zrem | incr | - | - |
srem | zremrangebylex | incrby | - | - |
sscan | zremrangebyrank | incrbyfloat | - | - |
sunion | zremrangebyscore | mget | - | - |
sunionstore | zrevrange | mset | - | - |
- | zrevrangebylex | msetnx | - | - |
- | zrevrangebyscore | psetex | - | - |
- | zrevrank | set | - | - |
- | zscan | setbit | - | - |
- | zscore | setex | - | - |
- | zunionstore | setnx | - | - |
- | - | setrange | - | - |
- | - | strlen | - | - |
cluster 族 | connection 族 | keys 族 | lists 族 | scripting 族 | server 族 | strings 族 |
cluster addslots | swapdb | touch | blpop | evalsha | bgrewriteaof | bitfield |
cluster count-failure-reports | - | restore | brpop | - | bgsave | - |
cluster countkeyinslot | - | object | brpoplpush | - | client kill | - |
cluster delslots | - | unlink | - | - | client list | - |
cluster failover | - | wait | - | - | client getname | - |
cluster forget | - | migrate | - | - | client pause | - |
cluster getkeysinslot | - | dump | - | - | client reply | - |
cluster info | - | - | - | - | client setname | - |
cluster keyslot | - | - | - | - | command count | - |
cluster meet | - | - | - | - | command getkeys | - |
cluster nodes | - | - | - | - | command info | - |
cluster replicate | - | - | - | - | config get | - |
cluster reset | - | - | - | - | config rewrite | - |
cluster saveconfig | - | - | - | - | config set | - |
cluster set-config-epoch | - | - | - | - | config resetstat | - |
cluster setslot | - | - | - | - | debug object | - |
cluster slaves | - | - | - | - | debug segfault | - |
cluster slots | - | - | - | - | flushall | - |
readonly | - | - | - | - | flushdb | - |
readwrite | - | - | - | - | lastsave | - |
- | - | - | - | - | monitor | - |
- | - | - | - | - | role | - |
- | - | - | - | - | save | - |
- | - | - | - | - | shutdown | - |
- | - | - | - | - | slaveof | - |
- | - | - | - | - | slowlog | - |
- | - | - | - | - | sync | - |
本页内容是否解决了您的问题?