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

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

routes - Laravel 4 Wildcard Routing to Different Controllers -

cross browser - XSLT namespace-alias Not Working in Firefox or Chrome -