caching - Facebook API - cache response on server -


i've got app/site makes few calls out facebook api upon specific user interaction. wondering best approach caching responses of these api calls on server.

my current setup node.js running express , mongodb storage. should shove api response mongo timestamp, , before making future api calls check in there first?

i'd use redis (http://www.redis.io) or memcached (http://memcached.org/) caching needs. make key md5 hash of whatever api call you're making , check cache if key exists before hit api.


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -