def __init__(self): """ Fake Cache. >>> DummyCache() #doctest: +ELLIPSIS <__main__.DummyCache object at 0x...> """ AbstractCache.__init__(self)
def __init__(self, config=None): """ Ram Cache. >>> r = RamCache() >>> r #doctest: +ELLIPSIS <__main__.RamCache object at 0x...> >>> r._cache {} """ AbstractCache.__init__(self) self._cache = {}