//Program.cs 中注册
builder.Services.AddMemoryCache();//缓存 https://learn.microsoft.com/zh-cn/dotnet/core/extensions/caching#in-memory-caching
//Program.cs 中注册
builder.Services.AddMemoryCache();//缓存 https://learn.microsoft.com/zh-cn/dotnet/core/extensions/caching#in-memory-caching