I'm trying to save sorted array to Redis, preserving it's order of keys (it's crucial)
[ 'abcdef' => value1, 'abcd' => value2, 'abc' => value3 ]
,and I need to restore it in the same order;
I tried hashes, but when I get the array back, it's realized unordered. For example:
[ 'abc' => value3, 'abcd' => value2, 'abcded' => value1 ]
I have some ideas about ZADD, but I can't figure out exactly, what I have to do.