// 레디스 테스트(List) 삭제 private async void button10_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(textBoxRedisTestListCount.Text)) { DevLog.Write("Error: 빈 값입니다"); return; } else { var deleteValue = textBoxRedisTestList.Text; int count = textBoxRedisTestListCount.Text.ToInt32(); var value = await RedisLib.DeleteList <string>(REDIS_LIST_KEY, deleteValue, count); DevLog.Write(string.Format("List 삭제. {0} : {1})", REDIS_LIST_KEY, value)); } }
// 레디스 테스트(List) 삭제. 오른쪽에서 Pop private async void button12_Click(object sender, EventArgs e) { var value = await RedisLib.DeleteList <string>(REDIS_LIST_KEY, false); DevLog.Write(string.Format("List 오른쪽에서 Pop. {0} : {1})", REDIS_LIST_KEY, value)); }