// 레디스 테스트(int, float, string) 검색 private async void button3_Click(object sender, EventArgs e) { try { if (string.IsNullOrEmpty(textBoxRedisTestInt.Text) == false) { var value = await RedisLib.GetString <int>(REDIS_INT_KEY); DevLog.Write(string.Format("String Get. {0} : {1}. Result:{2}", REDIS_INT_KEY, value.Item2, value.Item1)); } if (string.IsNullOrEmpty(textBoxRedisTestDouble.Text) == false) { var value = await RedisLib.GetString <double>(REDIS_DOUBLE_KEY); DevLog.Write(string.Format("String Get. {0} : {1}. Result:{2}", REDIS_DOUBLE_KEY, value.Item2, value.Item1)); } if (string.IsNullOrEmpty(textBoxRedisTestString.Text) == false) { var value = await RedisLib.GetString <string>(REDIS_STRING_KEY); DevLog.Write(string.Format("String Get. {0} : {1}. Result:{2}", REDIS_STRING_KEY, value.Item2, value.Item1)); } textBoxRedisTestInt.Text = textBoxRedisTestDouble.Text = textBoxRedisTestString.Text = ""; } catch (Exception ex) { DevLog.Write(ex.ToString()); } }
// 레디스 테스트(PERSION) 검색 private async void button6_Click(object sender, EventArgs e) { var value = await RedisLib.GetString <PERSION>(REDIS_PERSION_KEY); DevLog.Write(string.Format("PERSION Get. {0} : {1}, {2}. Result:{3}", REDIS_PERSION_KEY, value.Item2.Name, value.Item2.Age, value.Item1)); }