This topic contains 3 replies, has 1 voice, and was last updated by Eliot Muir 6 years, 11 months ago.
net.http.getCached
You must be logged in to reply to this topic.
This topic contains 3 replies, has 1 voice, and was last updated by Eliot Muir 6 years, 11 months ago.
For those of you that made it to our user conference last year I gave a talk about the utility of caching HTTP results to make web services easier to deal with. This page talks about that:
http://help.interfaceware.com/kb/salesforce-com/3
I’ve just put together a new module which produces a net.http.getCached function with this idea in mind but done with a fairly clean self contained implementation.
I’ve just published a channel which you can pick up from the Iguana Webservices repo which has this new module. It relies on the new store2 module for it’s implementation of the caching (it was a large part of the motivation for writing the new module).
This shows how to use this module – not that much different from net.http.get:
The implementation isn’t too bad:
https://github.com/interfaceware/iguana-webservices/blob/master/shared/net/http/getCached.lua
If people have any questions let me know.
The new store2 module is mentioned here:
http://help.interfaceware.com/forums/topic/improved-version-of-store-module
This has been updated again thanks to some nice ideas from Bret on altering all the net.http APIs:
You must be logged in to reply to this topic.