cache.add encodes values as utf-8, cache.set does not
|Reported by:||jbalogh||Owned by:||nobody|
|Component:||Core (Cache system)||Version:||1.2|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
#11012 changed cache.set for the memcached backend to stop forcing value.encode('utf-8'), but cache.add still does encoding. This means you receive a unicode object with cache.set and a str for the same object with cache.add. Attached patch removes encoding from cache.add.