def __init__(self, file, mode):
        """ Create new pdict using file. mode is passed to anydbm.open(). """
        self._cache = {}
        self._flush = {}
        self._dbm = anydbm.open(file, mode)
 Create new pdict using file. mode is passed to anydbm.open(). 
recipes/Python/492226_Persistent_lazy_caching/recipe-492226.py