Exemple #1
0
class DefaultCacheConfiglet(object):
    interface.implements(ICacheConfiglet)

    def __init__(self):
        self.cache = RAMCache()

    def query(self, id, key, default=None):
        return self.cache.query(id, key, default)

    def set(self, data, id, key):
        self.cache.set(data, id, key)
Exemple #2
0
 def __init__(self):
     self.cache = RAMCache()