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

Does jedis have a method that can take a partial key and returns all the values that match that partial key

$
0
0

I have a requirement, where I have built up a key with two elementsclientid-systemid, using get, will return the value for that one key.

I also have a requirement where using a partial key clientid. I will return all values for that clientId.

Currently, I have it broken down into two calls to the cache.Call 1 uses jedis.scan, this will return a list of all the keys of type clientid-systemid, prefixed with that clients Id.I then call jedis.mget, and this returns all the values for that list of keys.

What I am trying to do is have it as one method call. I thought it was hscan or sscan.But it looks as if they are not the correct calls.


Viewing all articles
Browse latest Browse all 2203

Trending Articles



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