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' -

Making Empty C++ Project: General exception (Exception from HRESULT:0x80131500) Visual Studio Community 2015 -

How to fix java warning for "The value of the local variable is not used " -