.NET 跨平台缓存依赖
人们会推荐什么作为跨平台缓存依赖项?
我们的应用程序可能使用多个数据库平台(例如MSSQL和MySQL),因此这排除了Sql缓存依赖性。
我曾考虑过使用文件缓存依赖项,并在数据更改时仅触摸文件。然而,只有当我可以在 ASP.NET MVC 中使用与输出缓存相同的文件缓存依赖项时,这才真正有任何好处(OutputCache 属性只有 SqlDependency 选项)。
非常感谢, 本
[更新] 我们的目标是使用 .NET 的内置缓存功能(System.Runtime.Caching),而不是任何外部缓存提供程序(AppFabric、Memcached 等)
What would one recommend as a cross platform cache dependency?
Our application may use multiple database platforms (e.g. MSSQL and MySQL) so this rules out Sql Cache Dependency.
I had thought about using a file cache dependency and just touching the file when my data changes. However, this is only really of any benefit if I can use the same file cache dependency with output caching in ASP.NET MVC (the OutputCache attribute only has an option for SqlDependency).
Many thanks,
Ben
[Update]
We aim to use the built in caching features of .NET (System.Runtime.Caching) not any external cache providers (AppFabric, Memcached etc.)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
一种方法是使用 Windows AppFabric 中的缓存功能。带有许多处理缓存依赖性和失效的行为。
One way is to use the caching functionality in Windows AppFabric. Comes with lots of behaviour for handling cache dependencies and invalidation.