-
|
@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 (
PWDis particularly useful so commands run in different directories are cached separately) orbc::warm::FUNCTION_NAMEto asynchronously warm the cache. You can also customize theBC_CACHE_DIRto 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 (bktprovides a--forceflag that does this) but I can imagine adding abc::force::FUNCTION_NAMEfunction if that would be useful.