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

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

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')
  def getCacheStorage(self, **kw):
    """Follow MemcachedTool.getMemcachedDict implementation
    """
    return SharedDict(self._getMemcachedDict(), prefix=self._key_prefix)