public static void Show() { //去重:IP统计去重;添加好友申请;投票限制;点赞; //交叉并的使用 using (RedisSetService service = new RedisSetService()) { service.FlushAll();//清理全部数据 service.Add("Eleven", "Powell"); service.Add("Eleven", "Tenk"); service.Add("Eleven", "spider"); service.Add("Eleven", "spider"); service.Add("Eleven", "spider"); service.Add("Eleven", "aaron"); service.Add("Eleven", "Linsan"); service.Add("Powell", "Eleven"); service.Add("Powell", "Tenk"); service.Add("Powell", "ywa"); service.Add("Powell", "Pang"); service.Add("Powell", "Jeff"); var result = service.GetIntersectFromSets("Eleven", "Powell"); var result2 = service.GetDifferencesFromSet("Powell", "Eleven"); var result3 = service.GetDifferencesFromSet("Eleven", "Powell"); var result4 = service.GetUnionFromSets("Eleven", "Powell"); } }