R
R
razer962019-05-30 22:37:35
Redis
razer96, 2019-05-30 22:37:35

Is it possible to get values ​​from multiple keys at once in redis?

Hello.
Suppose 12 different keys are stored in the radish (known to me in advance), and the values ​​\u200b\u200bof these keys.
Whether it is possible to pull out values ​​for example only 10 certain keys one function? Those. not cyclical. If yes, then tell me how to do it? Or if this is done cyclically, then how to process requests synchronously? Using Node.js

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Papa, 2019-05-31
Stifflera @PapaStifflera

In the documentation in English in white:
Returns the values ​​of all specified keys. For every key that does not hold a string value or does not exist, the special value nil is returned. Because of this, the operation never fails.
https://redis.io/commands/mget

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question