public ActionResult <IEnumerable <string> > Get([FromServices] IDistributedCache distributedCache) { return(new string[] { "value1", "value2", distributedCache?.GetHashCode().ToString() }); }