Opened 16 years ago
Closed 16 years ago
#12179 closed (duplicate)
Should be able to manually store non-text in the memcached backend
| Reported by: | joshuajonah | Owned by: | nobody |
|---|---|---|---|
| Component: | Core (Cache system) | Version: | dev |
| Severity: | Keywords: | gzip | |
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
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.
Attachments (1)
Change History (2)
comment:1 by , 16 years ago
| Resolution: | → duplicate |
|---|---|
| Status: | new → closed |
by , 16 years ago
Note:
See TracTickets
for help on using tickets.
Dupe of #12178.