473,324 Members | 1,856 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

Cache Dependencies in Winforms??

Hello

I have a C# application and am caching some data on the client side by
using a HashTable. Is there a way I can set Cache dependencies like a
time factor by which my cache is updated by making a call to the
webservice, as and when the time expires?

I believe on the server side this is done using System.Web.Caching
where you have a number of dependencies to set. Is there something
similar available for the client side? If not does anyone know how it
could be done?

I'd really appreciate if you could reply A.S.A.P.

Thanks,
Vinit

Dec 19 '05 #1
1 1908
Vinit,

There is nothing out of the box that will provide this for you.
However, check out the Enterprise Application Blocks (there is a .NET 2.0
version out now in beta, I believe). There is a caching framework which
mirrors the one in ASP.NET and can be used anywhere.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Vinit" <vi********@gmail.com> wrote in message
news:11*********************@g14g2000cwa.googlegro ups.com...
Hello

I have a C# application and am caching some data on the client side by
using a HashTable. Is there a way I can set Cache dependencies like a
time factor by which my cache is updated by making a call to the
webservice, as and when the time expires?

I believe on the server side this is done using System.Web.Caching
where you have a number of dependencies to set. Is there something
similar available for the client side? If not does anyone know how it
could be done?

I'd really appreciate if you could reply A.S.A.P.

Thanks,
Vinit

Dec 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: sizheng | last post by:
who can talk about it? I'm confused. THANKS.
4
by: Zeljko | last post by:
Hi, I was playing with the cache class (caching data, not fragments or pages). It seems to be a very usefull feature, but I didn't manage to find an explanation on how it works behind the scene....
2
by: wh | last post by:
I'm not sure what I am trying to do is correct but within a global object I'd like to store an object with a dependency on a specified directory. I am aware that I am able to add a reference to a...
2
by: Harry Simpson | last post by:
If anyone can chime in on these questions, I'd sure appreciate it. 1. How does the cache block fit in with the UIP Block - Is the "state" managed there handled any differently with the CAB...
4
by: Guadala Harry | last post by:
I want to create a STATIC method that removes all items from the Cache. Questions: 1. Is a safe thing to do (any threading issues?) 2. Is the following code a good way to get the job done -...
8
by: brett | last post by:
How do I add a string to the cache so that it updates if the string source changes? CacheDependency() seems to want an absolute path. My string is a full http link. Thanks, Brett
2
by: mahesh.prasad | last post by:
Hi, I'm trying to add an object to the .NET cache using a CacheDependency and I get the following exception : System.InvalidOperationException: Cache_dependency_used_more_that_once at...
2
by: moondaddy | last post by:
I had to repost this because I had to update and change my msdn alias. I will re-ask the question and clarify a few things that were not clear before. This code is all executed on my dev...
8
by: Andrus | last post by:
I'm creating C# WinForms client-server database application. This application reads data from PostgreSQL server using npgsql Dataadapter and DataReader classes and stores data mostly in Datasets...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.