Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我计划对我的数据进行一些内存缓存,以便在我的 Web 服务中进行操作。该数据基本上是不经常更改的查找值。我计划在数据集(多个表)中获取所有数据并将它们存储到数据库端的数据不变。之所以如此,是因为我的一些数据永远不会改变,而其中一些可能会非常频繁地改变。任何想法?
我可能会将其缓存在 DataTable 级别,然后每个表都可以有自己的缓存规则(过期时间、上次更新等)。