public static string GetPharmaInfo(string drugName) { string pharmaInfoStr = null; object pharmaInfo = GetCacheItem(drugName); if (pharmaInfo == null) { pharmaInfo = DynamoDBManager.GetPharmaInfo(drugName); SetCacheItem(drugName, pharmaInfo); } if (pharmaInfo != null) { pharmaInfoStr = pharmaInfo.ToString(); } return(pharmaInfoStr); }
public static void Init() { // Sets up the DynamoDB table with sample data about pharmaceutical usage DynamoDBManager.Init(); NewMemcachedClient(); }