更新日志显示
This commit is contained in:
parent
1049ec9a97
commit
a42fae902a
|
@ -24,6 +24,7 @@ app.MapPost("/CacheData/Set", async (HttpRequest request, IDistributedCache cach
|
||||||
body = await stream.ReadToEndAsync();
|
body = await stream.ReadToEndAsync();
|
||||||
}
|
}
|
||||||
cache.SetString(key, body);
|
cache.SetString(key, body);
|
||||||
|
Console.WriteLine($"{DateTime.Now:yyyy-MM-dd HH:mm:ss} [{key}[update to [{body}] ");
|
||||||
return "success";
|
return "success";
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -15,10 +15,9 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
|
||||||
<_TargetId>Folder</_TargetId>
|
<_TargetId>Folder</_TargetId>
|
||||||
<SiteUrlToLaunchAfterPublish />
|
<SiteUrlToLaunchAfterPublish />
|
||||||
<TargetFramework>net7.0</TargetFramework>
|
<TargetFramework>net7.0</TargetFramework>
|
||||||
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
|
<RuntimeIdentifier>linux-x64</RuntimeIdentifier>
|
||||||
<PublishSingleFile>true</PublishSingleFile>
|
<PublishSingleFile>true</PublishSingleFile>
|
||||||
<ProjectGuid>295af217-802a-4cc5-a87c-ce1d68ed553f</ProjectGuid>
|
<ProjectGuid>295af217-802a-4cc5-a87c-ce1d68ed553f</ProjectGuid>
|
||||||
<SelfContained>false</SelfContained>
|
<SelfContained>false</SelfContained>
|
||||||
<PublishReadyToRun>false</PublishReadyToRun>
|
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
</Project>
|
</Project>
|
|
@ -4,6 +4,7 @@
|
||||||
<TargetFramework>net7.0</TargetFramework>
|
<TargetFramework>net7.0</TargetFramework>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
<ImplicitUsings>enable</ImplicitUsings>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
<ServerGarbageCollection>false</ServerGarbageCollection>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|
Loading…
Reference in New Issue