コード例 #1
0
 public ActionResult <IEnumerable <string> > Get([FromServices] IDistributedCache distributedCache)
 {
     return(new string[] { "value1", "value2", distributedCache?.GetHashCode().ToString() });
 }