flickr / flickr-sdk

Almost certainly the best Flickr API client in the world for node and the browser
https://www.flickr.com/services/api
MIT License
131 stars 29 forks source link

Caching queries #117

Closed ebisbe closed 7 years ago

ebisbe commented 7 years ago

Would you recomend caching queries? I asume that is not posible with this sdk.

jeremyruppel commented 7 years ago

Caching API calls might make sense for your application depending on what you're doing, but it's definitely out of scope in terms of core functionality in this SDK. However, since this SDK is really just a thin layer over superagent, you can use any superagent plugin you'd like by just calling .use() on a Request instance. I haven't used this personally, but there's a superagent-cache plugin out there that looks pretty nice and might do the trick!