Answers for "c# .net core memory cache"

C#
0

c# .net core memory cache

[HttpGet]
public string Get()
{
    cache.Set(“MyKey”, DateTime.Now.ToString());
    return “This is a test method...”;
}
Posted by: Guest on June-01-2020
0

c# .net core memory cache

public void ConfigureServices(IServiceCollection services)
{
    services.AddMvc();
    services.AddMemoryCache();
}
Posted by: Guest on June-01-2020
-1

c# .net core memory cache

private IMemoryCache cache;
public MyCacheController(IMemoryCache cache)
{    
        this.cache = cache;
}
Posted by: Guest on June-01-2020

C# Answers by Framework

Browse Popular Code Answers by Language