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
Post a Comment