更新日志显示

This commit is contained in:
wangyu 2023-09-14 11:29:55 +08:00
parent 1049ec9a97
commit a42fae902a
3 changed files with 3 additions and 2 deletions

View File

@ -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";
}); });

View File

@ -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>

View File

@ -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>