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

sql - VB.NET Operand type clash: date is incompatible with int error -

SVG stroke-linecap doesn't work for circles in Firefox? -

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -