예제 #1
0
        /// <summary>
        /// 一次删除多个key
        /// </summary>
        /// <param name="keys"></param>
        public static void Del(List <string> keys)
        {
            if (keys == null || keys.Count <= 0)
            {
                return;
            }

            try
            {
                RedisKey rk = keys.RedisProtobuf();
                rk.Delete();
            }
            catch (Exception ex)
            {
                string errstr = "删除数据失败,Method=Del(List<string> keys),key=" + string.Join(",", keys);
                Logger.RedisLog.Error(errstr, ex);
                throw ex;
            }
        }