Orkun
Orkun

Reputation: 7248

Vertx 3.7.0+ Using the RedisAPI - Counterpart of mgetMany

In vertx prior to 3.7, there was a redis client method mgetmany:

RedisClient mgetMany(List<String> keys,
                     Handler<AsyncResult<JsonArray>> handler)
Get the values of all the given keys

In the native redis methods what is the counterpart of this?

How could we replace this method using the new RestAPI?

Upvotes: 0

Views: 205

Answers (1)

Amit Patil
Amit Patil

Reputation: 790

Its equivalent redis command is MGET. refer redis doc here

You can use any redis client lib to call redis. (For example Jedis, Redision, Lettuce), which will provide you easy to use APIs

Upvotes: 1

Related Questions