kellnerd / snap_storage

Persistent storage mechanism for multiple snapshots of the content which is referenced by an URI
https://deno.land/x/snap_storage
MIT License
0 stars 1 forks source link

feat: Support modifying responses before caching #1

Closed atj closed 6 months ago

atj commented 6 months ago

This commit adds support for passing a mutator function as an argument to cache. The primary use case is making requests to non-API URLs where the response may contain large amounts of dynamic and/or superflous data.

atj commented 6 months ago

Thanks for the suggestions, I've updated the PR and added a couple of comments.

atj commented 6 months ago

Hopefully everything is resolved now. Thanks for you patience!

kellnerd commented 6 months ago

Released as v0.6.0, documentation is looking good!