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

php - How can I edit my code to echo the data of child's element where my search term was found in, in XMLReader? -

javascript - Iterate over array and calculate average values of array-parts -

jQuery Ajax Render Fragments OR Whole Page -