parameters: (self)
docstring: Reload caches if time elapsed or any disappeared
docstring_summary: Reload caches if time elapsed or any disappeared
docstring_tokens: Reload caches if time elapsed or any disappeared
function: def _check_cache(self):
          """Reload caches if time elapsed or any disappeared"""
          if not self.cache_check:
              # explicitly told not to bother checking
              return
          timecond = time.time() - self.last_cache > self.cache_check
          existcond = all(os.path.exists(storage) for storage in self.storage)
          if timecond or not existcond:
              self.load_cache()
function_tokens: def _check_cache ( self ) : if not self . cache_check : # explicitly told not to bother checking return timecond = time . time ( ) - self . last_cache > self . cache_check existcond = all ( os . path . exists ( storage ) for storage in self . storage ) if timecond or not existcond : self . load_cache ( )