Skip to content

Commit

Permalink
feat:update test service
Browse files Browse the repository at this point in the history
  • Loading branch information
MayueCif committed Jul 11, 2023
1 parent 1d64299 commit b53de04
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Services/Masa.Auth.Service.Admin/Services/TestService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ public class TestService : ServiceBase
public TestService() : base("api/test")
{
MapGet(GetConf, "conf");
MapGet(SetCache, "cache");
}

public string GetConf([FromServices] IMasaConfiguration masaConfiguration, [FromServices] IConfiguration configuration, string Environment = "")
Expand All @@ -18,4 +19,9 @@ public string GetConf([FromServices] IMasaConfiguration masaConfiguration, [From
.GetValue("$public.DefaultConfig:SUFFIX_IDENTITY", "empty");
return suffix;
}

public void SetCache([FromServices] IMultilevelCacheClient multilevelCacheClient, string Environment = "")
{
multilevelCacheClient.Set<string>("test", "11111");
}
}

0 comments on commit b53de04

Please sign in to comment.