作业任务表用单对象缓存没有意义,基本上没有命中率
This commit is contained in:
parent
15f3141c2a
commit
92c3523bbd
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"profiles": {
|
||||
"HisAgent": {
|
||||
"commandName": "Project",
|
||||
"launchBrowser": true,
|
||||
"environmentVariables": {
|
||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||
},
|
||||
"applicationUrl": "https://localhost:54050;http://localhost:54051"
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue