作业任务表用单对象缓存没有意义,基本上没有命中率

This commit is contained in:
智能大石头 2022-12-23 12:25:21 +08:00
parent 15f3141c2a
commit 92c3523bbd
3 changed files with 16 additions and 4 deletions

View File

@ -56,8 +56,9 @@ namespace AntJob.Data.Entity
{
if (id <= 0) return null;
// 单对象缓存
return Meta.SingleCache[id];
//// 单对象缓存
//return Meta.SingleCache[id];
return Find(_.ID == id);
}
/// <summary>

View File

@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<OutputType>Exe</OutputType>
@ -10,7 +10,6 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Hosting" Version="7.0.0" />
<PackageReference Include="NewLife.Stardust.Extensions" Version="2.5.2022.1220-beta0113" />
</ItemGroup>

View File

@ -0,0 +1,12 @@
{
"profiles": {
"HisAgent": {
"commandName": "Project",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"applicationUrl": "https://localhost:54050;http://localhost:54051"
}
}
}