-
@dimo414 is there a way to force a decorated function to run again it's original function, return the fresh result and refresh the cache before it has expired? Or is there a way to mark the cached version as expired so the original function will run again? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 12 replies
-
Can you share more details about what you're trying to do? You can use an environment variable to invalidate the cache ( |
Beta Was this translation helpful? Give feedback.
Can you share more details about what you're trying to do?
You can use an environment variable to invalidate the cache (
PWD
is particularly useful so commands run in different directories are cached separately) orbc::warm::FUNCTION_NAME
to asynchronously warm the cache. You can also customize theBC_CACHE_DIR
to invalidate old cached data, though that's a bit of a big hammer. There isn't a way to force a single command to be re-cached at present (bkt
provides a--force
flag that does this) but I can imagine adding abc::force::FUNCTION_NAME
function if that would be useful.