redis how to limit the return number of KEYS command? -


i values "keys p_*" command in redis.

but "keys p_*" , if redis has millions of keys,i many values , bad performence.

so can 100 values "keys p_*" command?

scan recommended production, can use like:

scan 0 count 100 match p_* 

and keep getting next page
more details see scan command:
http://redis.io/commands/scan


Comments