Skip to content
Permalink
Browse files

Actually caching to the ivar is a good thing.

  • Loading branch information...
wsanchez committed Nov 20, 2008
1 parent bc0a7e0 commit f8beaae3eba105b64215a0529556ddfef5f245ef
Showing with 3 additions and 5 deletions.
  1. +3 −5 twistedcaldav/memcacher.py
@@ -103,21 +103,19 @@ def _getMemcacheProtocol(self):
return self._memcacheProtocol

if config.Memcached['ClientEnabled']:
return self.getCachePool()
self._memcacheProtocol = self.getCachePool()

elif config.ProcessType == "Single" or self._noInvalidation:

# NB no need to pickle the memory cacher as it handles python types natively
self._memcacheProtocol = Memcacher.memoryCacher()
self._pickle = False
return self._memcacheProtocol

else:

# NB no need to pickle the null cacher as it handles python types natively
self._memcacheProtocol = Memcacher.nullCacher()
self._pickle = False
return self._memcacheProtocol

return self._memcacheProtocol


def add(self, key, value, expire_time=0):

0 comments on commit f8beaae

Please sign in to comment.
You can’t perform that action at this time.