0

I have two different keys have same values in redis. If I know one of the key and their value, I need to know the another key.

I am storing list type Values for these keys

Suresh Kumar
  • 615
  • 2
  • 8
  • 15
  • Redis is (in essence) a key-value server. You use keys to look up values, not the other way around. In your case, you should create an inverted index (list items being keys, and list key names being their values) – Sergio Tulentsev Mar 04 '16 at 14:01
  • More information about 2ndary indexing in Redis: http://redis.io/topics/indexes – Itamar Haber Mar 04 '16 at 14:33
  • 1
    Possible duplicate of [Find key by value](http://stackoverflow.com/questions/12745818/find-key-by-value) – Itamar Haber Mar 04 '16 at 14:59

0 Answers0