hash - Storing key, value pairs with redis sorted set -


i want store (key, value) pairs in redis sorted set (along double ordering). current option have sorted set keys, , have redis hash can store pairs in. there better/more canonical way approach problem?

it highly depends on planned use of sorted set. 1 pattern might use duplicate data. in nosql world, normalization not critical. concatenate key value in sorted set. instead of key: score, store key-value: score. - character can delimiter choose can parse. saves 1 trip key: value set fetch value. again, highly depends on planned use of sorted set.


Comments

Popular posts from this blog

android - Why am I getting the message 'Youractivity.java is not an activity subclass or alias' -

python - How do I create a list index that loops through integers in another list -

c# - “System.Security.Cryptography.CryptographicException: Keyset does not exist” when reading private key from remote machine -