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

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)
Mark a write operation to cache 

src/e/r/erp5-HEAD/product/ERP5Type/CachePlugins/RamCache.py   erp5(Download)
  def set(self, cache_id, scope, value, cache_duration=None, calculation_time=0):
    cache = self.getCacheStorage()
    cache[(scope, cache_id)] = CacheEntry(value, cache_duration, calculation_time)
    self.markCacheMiss()
 

src/e/r/erp5-HEAD/product/ERP5Type/CachePlugins/DistributedRamCache.py   erp5(Download)
    cache_entry = CacheEntry(value, cache_duration, calculation_time)
    cache_storage.set(cache_id, cache_entry)
    self.markCacheMiss()
 
  def expireOldCacheEntries(self, forceCheck = False):