You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
User defines task inputs and outputs
Deno hashes task inputs and outputs
Deno saves outputs in internal cache
Next time task is run:
Deno hashes input files again
Deno compares new input hash with the previous input hash.
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:
shinebayar-g
changed the title
Deno Task caching
[Feature Request] Deno Task caching
Nov 22, 2024
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: