Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

src/e/r/erp5-HEAD/product/ERP5Type/CachePlugins/DistributedRamCache.py   erp5(Download)
 
try:
  from Products.ERP5Type.Tool.MemcachedTool import MemcachedDict, SharedDict
except ImportError:
  LOG('DistributedRamCache', 0, 'unable to import memcache')
      dictionary = local_dict[configuration_key]
    except KeyError:
      dictionary = MemcachedDict(self._servers.split('\n'),
                      expiration_time=self._expiration_time,
                      server_max_key_length=self._server_max_key_length,

src/e/r/erp5-HEAD/product/ERP5Type/Core/MemcachedPlugin.py   erp5(Download)
from Products.ERP5Type import PropertySheet
from Products.ERP5Type import Permissions
from Products.ERP5Type.Tool.MemcachedTool import MemcachedDict
from Products.ERP5Type.Globals import InitializeClass
 
    if key != my_key:
      connection = MemcachedDict(
        (url, ),
        expiration_time=expiration,
        server_max_key_length=max_key_length,