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

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

src/e/r/erp5-HEAD/product/ERP5Type/Core/CacheBag.py   erp5(Download)
  def get(self, cache_id, default=None):
    """
      Get value or return default.
    """
    ram_cache_factory_plugin_list = self.getRamCacheFactoryPluginList()
    """
    cache_duration = self.getRamCacheFactory().cache_duration
    ram_cache_factory_plugin_list = self.getRamCacheFactoryPluginList()
    # set only in first plugin in sequence
    ram_cache_factory_plugin_list[0].set(cache_id, DEFAULT_CACHE_SCOPE, value, cache_duration)