Does anyone know how a component can be cached server side. I know how to
cache a component and it works, but I think this is client side caching,
because it works with the current HttpContext.
....
Cache cache = HttpContext.Current.Cache;
Table table;
// Get the table from the cache
table = (Table) cache.Get("myCacheKey");
// If nothing is found, create the table and insert it in the cache
if (table == null)
{
table = new Table();
SetTable; // This function creates the table
cache.Insert("myCacheKey", table, null, DateTime.Now.AddMinutes(5),
TimeSpan.Zero);
}
.... 3 3079
Hi Jo:
HttpContext.Current.Cache is a server side cache. HttpContext
represents various properties about the state of the current request
as it executes on the server.
--
Scott http://www.OdeToCode.com
On Mon, 16 Aug 2004 16:38:40 +0200, "Jo Versmissen" <jv*@pss.be>
wrote: Does anyone know how a component can be cached server side. I know how to cache a component and it works, but I think this is client side caching, because it works with the current HttpContext.
... Cache cache = HttpContext.Current.Cache; Table table; // Get the table from the cache table = (Table) cache.Get("myCacheKey");
// If nothing is found, create the table and insert it in the cache if (table == null) { table = new Table(); SetTable; // This function creates the table cache.Insert("myCacheKey", table, null, DateTime.Now.AddMinutes(5), TimeSpan.Zero); } ...
Thanks Scott.
So this means that all the users get their info from the same cache.
Greetings,
Jo
"Scott Allen" <bitmask@[nospam].fred.net> schreef in bericht
news:c7********************************@4ax.com... Hi Jo:
HttpContext.Current.Cache is a server side cache. HttpContext represents various properties about the state of the current request as it executes on the server.
-- Scott http://www.OdeToCode.com
On Mon, 16 Aug 2004 16:38:40 +0200, "Jo Versmissen" <jv*@pss.be> wrote:
Does anyone know how a component can be cached server side. I know how to cache a component and it works, but I think this is client side caching, because it works with the current HttpContext.
... Cache cache = HttpContext.Current.Cache; Table table; // Get the table from the cache table = (Table) cache.Get("myCacheKey");
// If nothing is found, create the table and insert it in the cache if (table == null) { table = new Table(); SetTable; // This function creates the table cache.Insert("myCacheKey", table, null, DateTime.Now.AddMinutes(5), TimeSpan.Zero); } ...
Hi Jo:
That is correct!
--s
On Mon, 16 Aug 2004 20:28:35 +0200, "Jo Versmissen"
<jv******@hotmail.com> wrote: Thanks Scott.
So this means that all the users get their info from the same cache.
Greetings, Jo
--
Scott http://www.OdeToCode.com This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: diskoduro |
last post by:
Hi!!
Years ago I built a database to control the production of a little
factory.
The users wanted to work in a Windows Net workgroup so I created an
mdb with all the tables and data an after...
|
by: Evgeny |
last post by:
I'm trying to do server caching for some pages of a
website I developed.
All the pages include the same user control. In this user
control I have the following 4 lines.
...
|
by: JJ |
last post by:
Hi,
What is the best way to debug an asp.net app on a server? What is the best
way to check for performance issues on a certain webform? How about checking
response times for webform. Also...
|
by: Jonaed |
last post by:
Hello,
I am having a problem with caching, or at least I think it is with caching.
I have a simple <%= "text " + DateTime.Now.ToString() %> in one of my aspx files (that is included thru the...
|
by: Purti Malhotra |
last post by:
Hi All,
In our Web hosting environment we are using Virtual hosting i.e. multiple
websites are on one server and multiple domains are pointing to a single
website.
Issue: We have two domains...
| |
by: Jobs |
last post by:
Download the JAVA , .NET and SQL Server interview with answers
Download the JAVA , .NET and SQL Server interview sheet and rate
yourself. This will help you judge yourself are you really worth of...
|
by: Toni |
last post by:
Hello! I'm trying to use ASP.NET caching with my web site and SQL Server,
but I have a problem.
I try to do everything according to the instructions like this page here:...
|
by: Toni |
last post by:
Hello! I'm trying to get caching work with ASP.NET 2.0 and SQL Server
Express Edition 2005, but I have a problem and I can't figure out what I'm
still doing wrong.
I have enabled the database...
|
by: Trapulo |
last post by:
Hello,
I'm developing an asp.net application that is connected to a remote system
using WCF (wshttp binding). So I want to use a local cache to manage data
that I receive from remote service.
...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |