Optional 'padchar' parameter for SETRANGE/bitops? #561

m-o-e opened this Issue Jun 20, 2012 · 0 comments


None yet

1 participant

m-o-e commented Jun 20, 2012

Not sure if this is a common use-case but I've found myself patching redis to change the padding character (used by memset in sdsgrowzero) to pad strings with a value other than \0 when they're extended.

Would this warrant adding an optional 'padchar' parameter to the SETRANGE/bitops commands (0-255, defaulting to 0)?

For background: We're packing doubles to redis and generally want to pad with FF (NaN) instead of 00.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment