想要将我的应用程序缓存15分钟 [英] Want to cache my application for 15 minutes

查看:74
本文介绍了想要将我的应用程序缓存15分钟的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我已经开发了一个大约20页的Web应用程序,我希望将我的应用程序缓存15分钟,这样,如果用户需要在任何页面上更改条目,他们可以对其进行更改,同时许多用户可以访问该应用程序并告诉我如何将缓存用于用户控件.

任何帮助将不胜感激.
谢谢

HI All,

I have developed a web application of around 20 pages i want to cache my my application for 15 minutes so that if user required to change there entries on any page they can change it and at the same time many user can access the application and tell me how can i use the caching for user controls.

Any help will be appreciated.
Thanks

推荐答案

您可能会发现此有用的http://www.codeproject.com/Articles/334277/A-Beginner-s-Tutorial-on-Caching-in -ASP-NET
You might find this useful http://www.codeproject.com/Articles/334277/A-Beginner-s-Tutorial-on-Caching-in-ASP-NET


首先,您的问题不清楚. 我要缓存我的应用程序"是什么意思?

1.如果您的意思是要缓存包含表单的网页,以便您可以重新提交他的数据",(我认为)这是一个不好的主意.如果您的应用程序是无状态的(这是个好主意)(即,给定了输入,则应用程序总是返回相同的输出,而不管先前的输入如何).但是,如果您的应用程序是有状态的应用程序(即您的输出也取决于其他输入,因此相同的输出可能会不时产生不同的结果),缓存将导致 ^ ].

2.如果您要说的是类似于自动填写表格的内容,那么它是由现代浏览器非常聪明地完成的,我认为您不必为此担心.

我不知道这是否能回答您的问题.如果仍无法解决,请尝试重新输入您的问题.而且,如果您的意图与上文所述的第1点相似,那么我认为您需要重新考虑您的设计.
First of all, your question is not clear. What do you mean by "I want to cache my application"?

1. If you mean "to cache the web pages containing forms, so your can re-submit his data", (in my opinion) it''s a BAD idea. It would be a good idea if your application is stateless (i.e. given an input, application always returns the same output, irrespective of previous inputs). But if your application is a stateful application (i.e. your output depends on other inputs as well, so same output may yield different results from time to time) caching will lead to race conditions[^].

2. If you mean something similar to automatic filling out of forms, it is very intelligently done by modern browsers, and I don''t think you have to worry about it.

I do not know if this answers your question. Please try rewording your question if this does not answer. And if your intent is similar to point 1 I described above, in my opinion, you need to reconsider your design.


这篇关于想要将我的应用程序缓存15分钟的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆