😎修复缓存错误

This commit is contained in:
zuohuaijun 2024-06-29 10:20:15 +08:00
parent 50b81ff077
commit a0d49e9aa9

View File

@ -14,7 +14,7 @@ namespace Admin.NET.Core.Service;
[ApiDescriptionSettings(Order = 400)] [ApiDescriptionSettings(Order = 400)]
public class SysCacheService : IDynamicApiController, ISingleton public class SysCacheService : IDynamicApiController, ISingleton
{ {
private static ICacheProvider _cacheProvider = App.GetService<ICacheProvider>(); private static ICacheProvider _cacheProvider;
private readonly CacheOptions _cacheOptions; private readonly CacheOptions _cacheOptions;
public SysCacheService(ICacheProvider cacheProvider, IOptions<CacheOptions> cacheOptions) public SysCacheService(ICacheProvider cacheProvider, IOptions<CacheOptions> cacheOptions)