gpt4 book ai didi

asp.net - 我可以在应用程序之间共享 HttpRuntime.Cache 吗?

转载 作者:行者123 更新时间:2023-12-02 10:05:50 25 4
gpt4 key购买 nike

我有一个这样的网站设置:

/Web --this is the client facing site
/Web/Admin --this is the backend system and is setup as a Virtual Application

我正在使用 HttpRuntime.Cache 来缓存对数据库的调用。我想要做的是从/Web/Admin 站点清除/Web 站点上缓存的内容。看起来 HttpRuntime.Cache 是每个应用程序的单个实例。无论如何,在不使用分布式缓存系统的情况下解决这个问题。

最佳答案

我已经使用主站点上的 http 处理程序完成了此操作。使用一些参数从管理站点调用处理程序,告诉它要从缓存中删除哪些内容,然后处理程序就可以访问缓存并删除该项目。

关于asp.net - 我可以在应用程序之间共享 HttpRuntime.Cache 吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3487932/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com