Example #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)
Example #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)
Example #3
0
 def write():
     fname = _Loader.save_local_cache(cache_options, cache_pfx, bucket)
     fnames.add(fname)
Example #4
0
 def write():
     fname = _Loader.save_local_cache(cache_options, cache_pfx, bucket)
     fnames.add(fname)
Example #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)
Example #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)
Example #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)