It depends on your needs, if you need to share this data with other zsets / structure and want to write the value only once for each change, you can put id as the zset value and add a hash to store the object. However, this involves creating additional requests when reading data from zset (one zrange + n hgetall for n values in zset), but writing and synchronizing values between many structures is cheap (only updating the hash corresponding to the value).
"", - zset, (JSON, MESSAGEPACK, KRYO...) , zset. , zset ( 1 O (log (N) + M), , , , ), , , zsets/, / , .
Redis , , , , .
, , redis , , (- , ), / lua. , ( , , ), , , , ( redis, ).