Hacker News new | ask | show | jobs
by antirez 5558 days ago
True, the change is really minimal, but will prevent some incompatibility in the future. Btw 2.2.4 already released.

The change is about the return of the "OBJECT encoding" command against a sorted set. Since sorted sets have no special encoding yet (the special internal encoding Redis uses to save space for small lists, sets, ...) 2.2.3 used to return "raw". But since Pieter Noordhuis coded an awesome patch to bring specially encoded sorted sets to us, and a few cool guys are testing it since weeks with no problems, I think that we'll soon get it merged in the 2.2 branch.

When we'll have specially encoded sorted sets OBJECT encoding against a sorted set will return either "skiplist" or "ziplist", so I modified the return value to return just "skiplist" now. So after the merge everything will still be compatible.

A lot of words for a simple change, but semantics is important!