【调整】优化redis仓储,实现LockTake/LockRelease锁处理并发问题。

This commit is contained in:
大灰灰
2022-09-15 01:28:34 +08:00
parent a3630fecc0
commit 5494608f7a
7 changed files with 478 additions and 90 deletions

View File

@@ -78,7 +78,7 @@ namespace CoreCms.Net.Core.AOP
}
response ??= string.Empty;
_cache.Set(cacheKey, response, TimeSpan.FromMinutes(qCachingAttribute.AbsoluteExpiration)).Wait();
_cache.SetAsync(cacheKey, response, TimeSpan.FromMinutes(qCachingAttribute.AbsoluteExpiration)).Wait();
}
}
else