deno task
should support caching based on input/output
#26993
Labels
Milestone
deno task
should support caching based on input/output
#26993
I really like that I'm able to remove more and more dependencies using Deno!
v2.1 release is awesome. Perhaps this is already discussed internally, but I couldn't find any tickets here. So here we go.
With the help of task inputs and outputs it will be possible to cache task results. NX and Turbo repo uses similar model to achieve task caching.
High level API looks like this:
Next time task is run:
3a. If the input hashes don't match, Deno clears previous cached content (output) and runs task again.
3b. If the input hashes match, deno hashes output files and compares with the previous output hash. If the output hashes don't match, restore output contents from the previous output hash. If the output hashes match, do nothing.
The text was updated successfully, but these errors were encountered: