1234567891011121314151617181920212223242526 |
- namespace WCS.WorkEngineering.Extensions
- {
- public static class RedisExtenshin
- {
- ///// <summary>
- ///// 写入垛形信息
- ///// </summary>
- ///// <param name="redis"></param>
- ///// <param name="stackInfoList"></param>
- //public static void SetPalletizingInformation(this RedisClient redis, List<StackInfo> stackInfoList)
- //{
- // var lockKey = nameof(SetPalletizingInformation);
- // try
- // {
- // if (redis.SetNx(lockKey, 1)) //设置锁
- // {
- // redis.Set("PalletizingInformation", JsonConvert.SerializeObject(stackInfoList));
- // }
- // }
- // finally
- // {
- // redis.Del(lockKey);
- // }
- //}
- }
- }
|