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
Post a Comment