python-memcached
python-memcached copied to clipboard
Allow keys to be encoded before usage
For the cases where the user wants to transparently encode keys (say using urllib) before they are used further allow a encoding function to be passed in that will perform these types of activities (by default it is the identity function).
We need this patch from Joshua for OpenStack Nova bug, please take a look - https://bugs.launchpad.net/nova/+bug/1354258
Thank you for the patch. I've ported this to the latest code and added tests and have merged.