I have saved lists in following format in my Redis database.
key:inner-key1:inner-key2:inner-key3
For example my database looks like this:
A:B:X:val1
A:B:Y:val2
A:C:X:val3
A:C:Y:val4
How can I get inner keys for key B? I was trying to get it using KEYS A:B:*, but result of this are whole lines "A:B:X:val1" and "A:B:X:val2". All I need is to get only first inner key of "A:B" in format for example [X, Y].