I get values โโwith the "KEYS p_ *" command in redis.
But with "KEYS p_ *", if redis has millions of keys, I will get too many values โโand poor performance.
So, can I just get 100 values โโwith the "KEYS p_ *" command?
SCAN is recommended for production, so you can use something like:
SCAN 0 COUNT 100 MATCH p_*
and keep getting the next pagesee the SCAN command for more details:http://redis.io/commands/scan
Source: https://habr.com/ru/post/988425/More articles:Why do you need a lambda for the defaultdict socket? - pythonUpdate file modification time (tap) - rHow is a private superclass method allowed? - javaWith Golang templates, how can I set a variable in each template? - goAsynchronous operation and thread in C # - multithreadingSort tuples by inverse of the first element, regular second element - sortingDisplay and display only a specific object in a wireframe in Unity3D - unity3dMySQL AMOUNT TIME (3) with milliseconds - phpShare Twitter video via iOS app - iosChart.js Bar Chart - how to draw charts with 0 - chart.jsAll Articles