#12179: Should be able to manually store non-text in the memcached backend
--------------------------+-------------------------------------------------
Reporter: joshuajonah | Owner: nobody
Status: new | Milestone:
Component: Cache system | Version: SVN
Keywords: gzip | Stage: Unreviewed
Has_patch: 0 |
--------------------------+-------------------------------------------------
I am using a function that stores gzipped content in the memcached
backend. The built in memcached cache.get() runs smart_unicode() on the
returned text if it is detected as a string. Gzipped content is qualified
as str or uncode via "if isinstance(val, basestring):", however there
needs to be a way to avoid this in my case.
I've attached a simple diff in the form of an optional kwarg that works
for me.
--
Ticket URL: <
http://code.djangoproject.com/ticket/12179>
Django <
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
django-updates@...
To unsubscribe from this group, send email to
django-updates+unsubscribe@...
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en-~----------~----~----~----~------~----~------~--~---