#5589: Memcache backend should allow retrieval of stored binary objects -----------------------------------------+---------------------------------- Reporter: jhenry <[EMAIL PROTECTED]> | Owner: nobody Status: new | Component: Uncategorized Version: SVN | Keywords: Stage: Unreviewed | Has_patch: 0 -----------------------------------------+---------------------------------- Currently, the memcache backend is calling smart_unicode() on the output of the cache. This is not correct behavior, as there is no documentation saying that only unicode data can and should be stored in the cache. Theoretically any bytestream should be able to be stored in the cache.
The use case that I am working with in particular is a captcha generator. I was able to store the captcha image data generated with PIL in the cache, but on retrieval, I got a UnicodeDecodeError. If the unicode restriction is intended, there should be an error on insert as well. I have a patch to allow binary objects to be retrieved from the memcache backend if the unicode decode fails. -- Ticket URL: <http://code.djangoproject.com/ticket/5589> Django Code <http://code.djangoproject.com/> The web framework for perfectionists with deadlines --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~---
