MCPcopy
hub / github.com/omkarcloud/botasaurus / generate_cache_path_from_hash

Method generate_cache_path_from_hash

botasaurus/cache.py:347–349  ·  view source on GitHub ↗
(func, hash)

Source from the content-addressed store, hash-verified

345
346 @staticmethod
347 def generate_cache_path_from_hash(func, hash):
348 func = getfnname(func)
349 return relative_path(f'{Cache.cache_directory}{func}/{hash}.json')
350
351 @staticmethod
352 def get_random_items(func, n=5):

Callers 1

get_item_by_hashMethod · 0.80

Calls 2

getfnnameFunction · 0.85
relative_pathFunction · 0.70

Tested by

no test coverage detected