/// <summary> /// Gets the specified key. /// </summary> /// <param name="key">The key.</param> /// <returns></returns> public async Task <string> Get(string key) { var service = DemoProxy.CacheService(key); var value = await service.Get(key); return(value); }
public async Task AddOrUpdate(string key, [FromBody] string value) { var service = DemoProxy.CacheService(key); await service.AddOrUpdate(key, value); }