.NET 跨平台缓存依赖

发布于 2024-10-08 11:53:01 字数 320 浏览 0 评论 0原文

人们会推荐什么作为跨平台缓存依赖项?

我们的应用程序可能使用多个数据库平台(例如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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

披肩女神 2024-10-15 11:53:01

一种方法是使用 Windows AppFabric 中的缓存功能。带有许多处理缓存依赖性和失效的行为。

One way is to use the caching functionality in Windows AppFabric. Comes with lots of behaviour for handling cache dependencies and invalidation.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文