[Django] #12179: Should be able to manually store non-text in the memcached backend

View: New views
2 Messages — Rating Filter:   Alert me  

[Django] #12179: Should be able to manually store non-text in the memcached backend

by noreply-71 :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

#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
-~----------~----~----~----~------~----~------~--~---


Re: [Django] #12179: Should be able to manually store non-text in the memcached backend

by noreply-71 :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

#12179: Should be able to manually store non-text in the memcached backend
-----------------------------------+----------------------------------------
          Reporter:  joshuajonah   |         Owner:  nobody
            Status:  closed        |     Milestone:        
         Component:  Cache system  |       Version:  SVN  
        Resolution:  duplicate     |      Keywords:  gzip  
             Stage:  Unreviewed    |     Has_patch:  0    
        Needs_docs:  0             |   Needs_tests:  0    
Needs_better_patch:  0             |  
-----------------------------------+----------------------------------------
Changes (by Alex):

  * status:  new => closed
  * needs_better_patch:  => 0
  * resolution:  => duplicate
  * needs_tests:  => 0
  * needs_docs:  => 0

Comment:

 Dupe of #12178.

--
Ticket URL: <http://code.djangoproject.com/ticket/12179#comment:1>
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
-~----------~----~----~----~------~----~------~--~---