MCPcopy Create free account
hub / github.com/a4k-openproject/script.module.openscrapers / get

Function get

lib/openscrapers/modules/cache.py:21–56  ·  view source on GitHub ↗

Gets cached value for provided function with optional arguments, or executes and stores the result :param function: Function to be executed :param duration: Duration of validity of cache in hours :param args: Optional arguments for the provided function

(function, duration, *args)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 4

_hash_functionFunction · 0.85
cache_getFunction · 0.85
_is_cache_validFunction · 0.85
cache_insertFunction · 0.85

Tested by

no test coverage detected