MCPcopy Index your code
hub / github.com/omkarcloud/botasaurus / get_items_hashes

Method get_items_hashes

botasaurus/cache.py:365–373  ·  view source on GitHub ↗
(func, items=None)

Source from the content-addressed store, hash-verified

363 return _read_json_files(paths)
364 @staticmethod
365 def get_items_hashes(func, items=None):
366
367 if items is None:
368 results = get_cached_files(func)
369 # Return all cached items
370 return results
371 else:
372 # bug fixed, which causes bad cached items order
373 return [Cache.hash(item) for item in items]
374
375 @staticmethod
376 def _get_item_modified_time(func, key_data):

Callers 7

get_itemsMethod · 0.80
get_random_itemsMethod · 0.80
delete_itemsMethod · 0.80
filter_items_in_cacheMethod · 0.80

Calls 2

get_cached_filesFunction · 0.85
hashMethod · 0.45

Tested by

no test coverage detected