Quantcast
Channel: Active questions tagged redis+java - Stack Overflow
Viewing all articles
Browse latest Browse all 2205

how to use multiple keys in Redis with Jedis? Secondary index

$
0
0

Does redis provide support for secondary index on string data type?

I would like to know how i can store the data in redis along with seconday key.

Example let say i want to store the entity with key value as 'id:<some_string>' and it's payload as a compressed json string. but sometimes i need to search the payload with another value in json which might also be unique.

Like, sql query i can able to query with other field in JSON apart from key?

Also, I would like to know while setting value in redis using primary key, how can i set the secondary index value for it.


Viewing all articles
Browse latest Browse all 2205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>