Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 2005 > C# 2005
|
C# 2005 For discussion of Visual C# 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 13th, 2006, 01:05 AM
Authorized User
 
Join Date: Jun 2006
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default Concurrent Caching

Hi,
in an ASP.NET 2.0 application i am using the SqlDataSource for data access, and am using the embedded caching in this data sources, but i want to exclusively lock the cache once one request is retrieving the data from the cache, i used to use the 'lock' structure in C# to do that like the following:

lock(Cache["CahedData"])
{
    //My critical code...
}

so i was looking to do the same cause i thought that the cache will be a member of SqlDataSource but it is not (SqlDataSource.Cache not available).

is there away to do that.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Caching stu9820 ASP.NET 3.5 Basics 0 June 20th, 2008 03:20 PM
Concurrent Framework 1 + 2 on Windows Srvr 2003 ruairi ASP.NET 1.x and 2.0 Application Design 4 August 31st, 2006 11:25 AM
Multiple Concurrent Requests to XmlHttpRequest deepak.vasudevan Ajax 3 March 22nd, 2006 04:56 AM
caching? freaknfreak HTML Code Clinic 1 January 24th, 2006 12:10 PM
Multiple Concurrent Requests to XmlHttpRequest deepak.vasudevan Javascript 0 November 14th, 2005 06:49 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.