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

Method put

botasaurus/cache.py:268–272  ·  view source on GitHub ↗

Write data to a cache file in JSON format.

(func, key_data, data)

Source from the content-addressed store, hash-verified

266
267 @staticmethod
268 def put(func, key_data, data):
269 """Write data to a cache file in JSON format."""
270 _create_cache_directory_if_not_exists(func)
271 path = _get_cache_path(func, key_data)
272 write_json(data, path)
273
274 @staticmethod
275 def hash(data):

Callers 4

run_taskFunction · 0.45
run_taskFunction · 0.45
run_taskFunction · 0.45
wrapper_cacheFunction · 0.45

Calls 3

_get_cache_pathFunction · 0.85
write_jsonFunction · 0.70

Tested by

no test coverage detected