Subject: | Sorted sets lose score |
Date: | Wed, 15 Jun 2011 18:30:55 +0100 |
To: | bug-redis-dump [...] rt.cpan.org |
From: | David Leadbeater <dgl [...] dgl.cx> |
I notice that sorted sets are not storing the score:
Show quoted text
redis> zadd test 10 hi
(integer) 1
Show quoted textredis> zadd test 20 bye
(integer) 1
Result:
{
"test" : [
"hi",
"bye"
]
}
I wonder if you could store scores using something similar to how JSYNC (http://jsync.org/) proposes to extend JSON with YAML like information (although that is very much a work in progress, but hopefully has useful ideas).
David