[CalendarServer-changes] [2506] CalendarServer/trunk/twistedcaldav/memcacher.py

source_changes at macosforge.org source_changes at macosforge.org
Tue May 27 08:26:46 PDT 2008


Revision: 2506
          http://trac.macosforge.org/projects/calendarserver/changeset/2506
Author:   cdaboo at apple.com
Date:     2008-05-27 08:26:45 -0700 (Tue, 27 May 2008)

Log Message:
-----------
No need to use pickle with the memory and null cachers as they handle python types natively.

Modified Paths:
--------------
    CalendarServer/trunk/twistedcaldav/memcacher.py

Modified: CalendarServer/trunk/twistedcaldav/memcacher.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/memcacher.py	2008-05-27 15:23:48 UTC (rev 2505)
+++ CalendarServer/trunk/twistedcaldav/memcacher.py	2008-05-27 15:26:45 UTC (rev 2506)
@@ -110,12 +110,16 @@
 
         elif config.ProcessType == "Single" or self._noInvalidation:
             
+            # NB no need to pickle the memory cacher as it handles python types natively
             Memcacher._memcacheProtocol = Memcacher.memoryCacher()
+            self._pickle = False
             return succeed(Memcacher._memcacheProtocol)
 
         else:
             
+            # NB no need to pickle the null cacher as it handles python types natively
             Memcacher._memcacheProtocol = Memcacher.nullCacher()
+            self._pickle = False
             return succeed(Memcacher._memcacheProtocol)
 
     def set(self, key, value):

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20080527/e55fe261/attachment-0001.htm 


More information about the calendarserver-changes mailing list