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

All Samples(6)  |  Call(0)  |  Derive(3)  |  Import(3)
Base Cache class 

src/e/r/erp5-HEAD/product/ERP5Type/CachePlugins/RamCache.py   erp5(Download)
 
import time
from BaseCache import BaseCache, CacheEntry
from Products.ERP5Type import interfaces
import zope.interface
class RamCache(BaseCache):
  """ RAM based cache plugin."""
 
  zope.interface.implements(
        interfaces.ICachePlugin

src/e/r/erp5-HEAD/product/ERP5Type/CachePlugins/DistributedRamCache.py   erp5(Download)
from threading import local
from zLOG import LOG, WARNING
from BaseCache import BaseCache
from BaseCache import CacheEntry
from Products.ERP5Type import interfaces
class DistributedRamCache(BaseCache):
  """ Memcached based cache plugin. """
 
  zope.interface.implements(
        interfaces.ICachePlugin

src/e/r/erp5-HEAD/product/ERP5Type/CachePlugins/DummyCache.py   erp5(Download)
"Dummy (no cache)"
 
from BaseCache import BaseCache
 
class DummyCache(BaseCache):