数据集的内存缓存
我计划在内存中缓存我的数据,以便在我的网络服务中进行操作。该数据基本上是不经常更改的查找值。我计划获取数据集(多个表)中的所有数据并将它们存储起来,直到数据在数据库端不会改变。之所以如此,是因为我的某些数据永远不会改变,而有些数据可能会经常改变。有什么想法吗?
I am planning to do some in memory caching of my data for operations in my web service. This data would be basically lookup values which do not change frequently. I was planning to get all that data in datasets (multiple tables) and store them till the data does not change on DB side. This is so because some of my data never changes, where some may change quite frequently. Any idea?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我可能会将其缓存在 DataTable 级别,然后每个表都可以有自己的缓存规则(过期时间、上次更新时间等)。
I would probably cache it at the DataTable level, then each table could have it's own caching rules (expiration time, last updated, etc, etc).