apigee-127 / swagger-tools

A Node.js and browser module that provides tooling around Swagger.
MIT License
701 stars 374 forks source link

Cache management ? example ? #601

Open dlarr opened 5 years ago

dlarr commented 5 years ago

Hello,

I've read the doc : https://github.com/apigee-127/swagger-tools/blob/master/docs/Middleware.md#swagger-metadata

Apparently it's possible to manage some cache. But I need to be able to choose which URL to cache and for how long. Simple things can be done like https://medium.com/the-node-js-collection/simple-server-side-cache-for-express-js-with-node-js-45ff296ca0f0

But I can't figure how to achieve this simple cache management in the frame of swagger-tools. If anyone already achieve something like that, thank for sharing ! :)

Regards