RedisLabs / spark-redis

A connector for Spark that allows reading and writing to/from Redis cluster
BSD 3-Clause "New" or "Revised" License
935 stars 368 forks source link

Getting several list names and list values #319

Open gobertm opened 3 years ago

gobertm commented 3 years ago

Hello,

I'm trying to retrieve several persisted lists, list names as well as values. But it seems it is not possible. I tried fromRedisList giving a key pattern as input. I indeed retrieve all values, unfortunately, only values of the matching lists, stored in a RDD (I use Java) I cannot get the name of the matching list containing the value.

Is there any way to retrieve the list name as well? (As comparison fromRedisKV returns RDD<Tuple2<String, String>>, containing key and value, so when giving a key pattern as input I can get the real matching key)

Thank you