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

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

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

by Django-3 :: Rate this Message:

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

#12178: 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/12178>
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] #12178: Should be able to manually store non-text in the memcached backend

by Django-3 :: Rate this Message:

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

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

  * needs_better_patch:  => 0
  * has_patch:  0 => 1
  * needs_tests:  => 0
  * needs_docs:  => 0

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


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

by Django-3 :: Rate this Message:

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

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

 Isn't this one a duplicate of #11012?

--
Ticket URL: <http://code.djangoproject.com/ticket/12178#comment:2>
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] #12178: Should be able to manually store non-text in the memcached backend

by Django-3 :: Rate this Message:

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

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

 Nice find.

 Technically yes, but I like the manual override option better. Plus it's a
 lot simpler.

--
Ticket URL: <http://code.djangoproject.com/ticket/12178#comment:3>
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] #12178: Should be able to manually store non-text in the memcached backend

by Django-3 :: Rate this Message:

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

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

 * cc: josh@... (added)

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