常见问题
- 百万千万级别的数据能否使用keys *命令?为什么?
keys和scan的区别
keys用法:keys *
scan用法:scan 0 match pip* count 10
解释:从下边是0的位置开始扫描,查找name开头的key,每次查找10条
127.0.0.1:6379[10]> scan 0 match "pip*" count 10
1) "327680"
2) 1) "pipline:778732"
2) "pipline:694657"
3)
2023-07-19 19:30:10
keys *
scan 0 match pip* count 10
127.0.0.1:6379[10]> scan 0 match "pip*" count 10
1) "327680"
2) 1) "pipline:778732"
2) "pipline:694657"
3)
下一篇:02_漏洞扫描