Пример #1
0
 def save(self):
     """
     Store any persistent client data.
     """
     if self.options.cache_local_dir and len(self): # pylint:disable=len-as-condition
         # (our __bool__ is not consistent with our len)
         return persistence.save_local_cache(self.options, self.prefix, self)
Пример #2
0
 def save(self):
     """
     Store any persistent client data.
     """
     if self.options.cache_local_dir and len(self):  # pylint:disable=len-as-condition
         # (our __bool__ is not consistent with our len)
         return persistence.save_local_cache(self.options, self.prefix,
                                             self)
Пример #3
0
 def write():
     fname = _Loader.save_local_cache(cache_options, cache_pfx, bucket)
     fnames.add(fname)
Пример #4
0
 def write():
     fname = _Loader.save_local_cache(cache_options, cache_pfx, bucket)
     fnames.add(fname)
Пример #5
0
 def save(self):
     """
     Store any persistent client data.
     """
     if self.options.cache_local_dir and len(self):
         return persistence.save_local_cache(self.options, self.prefix, self)
Пример #6
0
 def save(self):
     options = self.options
     if options.cache_local_dir and self.__bucket.size:
         _Loader.save_local_cache(options, self.prefix, self)
Пример #7
0
 def save(self):
     options = self.options
     if options.cache_local_dir and self.__bucket.size:
         _Loader.save_local_cache(options, self.prefix, self)