【发布时间】:2021-07-19 18:42:41
【问题描述】:
我们将 ASP.NET Core 分布式缓存标记助手与 SQL 服务器一起使用。
<distributed-cache name="MyCacheItem1" expires-after="TimeSpan.FromDays(1)">
<p>Something that will be cached</p>
@DateTime.Now.ToString()
</distributed-cache>
问题是 Id 列是自动散列的。我们希望在 Id 列中有一些有意义的字符串。 有可能吗?
【问题讨论】:
标签: asp.net-core razor-pages distributed-caching