/// <summary> /// 累加,原子操作 /// </summary> /// <param name="key"></param> /// <param name="datetime"></param> public static long Increment(string key, long value) { try { using (NewLife.Caching.Redis redis = GetClient()) { return(redis.Increment(key, value)); } } catch (Exception e) { throw e; } }