Beispiel #1
0
 def file_cache(self):
     return NoCache(
         path=Path(os.devnull),
         max_age=0,
         disabled=True,
         use_outdated=True,
         simulation=True,
     )
Beispiel #2
0
 def make(self) -> NoCache:
     return NoCache(
         path=self.path,
         max_age=self.max_age,
         disabled=self.disabled | self.agent_disabled,
         use_outdated=self.use_outdated,
         simulation=self.simulation,
     )
Beispiel #3
0
 def file_cache(self, path):
     return NoCache(
         path=path,
         max_age=999,
         disabled=False,
         use_outdated=False,
         simulation=False,
     )