Adds a thin caching layer based on the computed hash of the input tree. If the input tree has changed,
the updateCache
method will be called, otherwise (input is the same) the results of the last updateCache
call will be used instead.
If you would prefer to perform your plugins work in a non-synchronous way, simply return a promise from updateCache
.
I know, right?
Running the tests:
npm install
npm test
This project is distributed under the MIT license.