redis keys *会让生产环境崩溃, 那keys falut*呢?
淡淡烟草味
淡淡烟草味 2017-04-27 09:02:53
0
4
1054

如题,这种 keys falut* 正则表达式查找会让 崩溃吗?

淡淡烟草味
淡淡烟草味

reply all(4)
淡淡烟草味

The reason why keys are no longer produced and used is because when the number of keys in redis is large, keys will be very time-consuming, and redis will be blocked during this period. Similarly, when the number of keys falut* is large, it will also be blocked. redis

给我你的怀抱

It mainly depends on the number of keys matched by the expression

左手右手慢动作

Try to increase the matching degree of regular expressions. Don’t do this~

给我你的怀抱

If you only take the quantity, directly dbsize

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template