Gorgon.js

Hooks

If you would like to hook into the caching process you can do so by adding hooks to tge Gorgon instance.

Gorgon.addHook('clear', (input, output) => {
  console.log('Clearing cache', input);
});

You can use the following hooks:

Notes

You can add multiple hooks to a single event. They will be executed in the order they were added.