From a42fae902a487fb71a49cd5608778c8b07fdd84e Mon Sep 17 00:00:00 2001 From: wangyu Date: Thu, 14 Sep 2023 11:29:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=97=A5=E5=BF=97=E6=98=BE?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Program.cs | 1 + Properties/PublishProfiles/FolderProfile.pubxml | 3 +-- Sinet.CacheService.csproj | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Program.cs b/Program.cs index 7d51927..ffe49d7 100644 --- a/Program.cs +++ b/Program.cs @@ -24,6 +24,7 @@ app.MapPost("/CacheData/Set", async (HttpRequest request, IDistributedCache cach body = await stream.ReadToEndAsync(); } cache.SetString(key, body); + Console.WriteLine($"{DateTime.Now:yyyy-MM-dd HH:mm:ss} [{key}[update to [{body}] "); return "success"; }); diff --git a/Properties/PublishProfiles/FolderProfile.pubxml b/Properties/PublishProfiles/FolderProfile.pubxml index 21ee1dd..dcbd1f7 100644 --- a/Properties/PublishProfiles/FolderProfile.pubxml +++ b/Properties/PublishProfiles/FolderProfile.pubxml @@ -15,10 +15,9 @@ https://go.microsoft.com/fwlink/?LinkID=208121. <_TargetId>Folder net7.0 - win-x64 + linux-x64 true 295af217-802a-4cc5-a87c-ce1d68ed553f false - false \ No newline at end of file diff --git a/Sinet.CacheService.csproj b/Sinet.CacheService.csproj index 3a2d712..a68e7a1 100644 --- a/Sinet.CacheService.csproj +++ b/Sinet.CacheService.csproj @@ -4,6 +4,7 @@ net7.0 enable enable + false