In Redis storing a large number of objects (HMSET):
{
size:6
.....
}
Need to do an asynchronous search on the field size of objects (e.g., size >= 4), find the first match and stop the search (not to ship the server with a large number of objects ~100k).
In a relational database this can be done with 1 SQL query in NodeJS+Redis need? to retrieve the entire collection of objects from Redis and pass it manually. The situation is complicated by asynchrony, kavakami and error handling during the extraction of data from Redis.
Tell me, please, about how to realize this task with the help of Node.JS?
Thank you.