Let say I have following data in redis:
key value
user-1-xxxx data1
user-1-yyyy data2
user-1-tttt data3
So, can I get all above records by wildcard user-1-*
(including the keys and values).
I tried KEYS user-1-*
, but it only give all the keys, not their values.
If it is not support wildcard searching, can you recommend a way to store this kind of data.
I am using golang redigo by the way.