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

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

iphone - Using nested NSDictionary with Picker -

objective c - Newbie question -multiple parameters -