card323 / redis

Automatically exported from code.google.com/p/redis
0 stars 0 forks source link

Alternate type(s) sorted set scores #626

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
This is just a wishlist item, but it'd be really nice if zsets could 
(optionally) use other types for their scores, e.g. long doubles or long ints.

My personal motivation here is that my service, just as an inherent property, 
has a bunch of 64-bit integers that I wish I could use as scores, but of course 
many of them won't fit precisely in a simple double. Long double gets you an 
80-bit number (with 64-bit significand) or better on almost every 
compiler/architecture pair, and of course long int gets you a 64-bit integer on 
just about every 64-bit system.

Original issue reported on code.google.com by tege...@gmail.com on 7 Aug 2011 at 7:33