Implications Of Using Memorycache In Asp?

Oct 7, 2010

I've got a class that needs to store data in a cache. Originally I used it in an asp.net application so I used System.Web.Caching.Cache.Now I need to use it in a Windows Service. Now, as I understand it, I should not use the asp.net cache in a not asp.net application, so I was looking into MemoryCache. The problem is that they are not compatible, so either I change to use MemoryCache in the asp.net application, or I will need to create an adapter so ensure that the two cache implementations have the same interface (maybe derive from ObjectCache and use the asp.net cache internally?)What are the implications of using MemoryCache in an asp.net?

View 1 Replies


Similar Messages:

MVC :: MemoryCache Threading?

Mar 13, 2010

MSDN says that MemoryCache's instance members are not thread safe. (http://msdn.microsoft.com/en-us/library/system.runtime.caching.memorycache(VS.100).aspx)

Does that mean every time I call Get() or Add() in a action method I have to wrap it with a lock?

View 1 Replies

HttpCookie.Expire Timezone Implications?

Jan 26, 2011

I'm trying to write cookies from my website and I'm trying to figure out what implications timezones has over the HttpCookie.Expire property. Should I be passing DateTime.Now.AddDays(1) or DateTime.UtcNow.AddDays(1) or the users's timezone plus a day?

View 1 Replies

DataSource Controls :: Implications Of LINQ To SQL

Mar 12, 2010

I thought I'd read that LINQ to SQL performs operations on the user's behalf and acts pretty much in the same way as if you manually queried a database. I was told today that it can be considerably slower.Can anyone point me to a link or share their knowledge so I can help to build up a picture of what actually happens?

View 4 Replies

Implications Of Conflicting Versions Of System.Web.Extensions?

Feb 23, 2010

One of the libraries I am including in my project makes use of System.Web.Extensions 3.5.0.0, which conflicts with my Framework 2.0 application, which uses (C:Program FilesMicrosoft ASP.NETASP.NET 2.0 AJAX Extensionsv1.0.61025System.Web.Extensions.dll). I can think of 3 possible solutions:

Ignore the warning and don't change anything. I am not sure what the application does to handle this.
Add an assembly binding element to my web.config (see below) Configure the application explicitly to use different assemblies (I think this is possible, but don't know how to do it).

However, I am unsure of the implications of each of these decisions. The application seems to work perfectly fine even when I ignore the warnings (solution 1), but ignoring warnings that I don't fully understand bugs me...as does having warnings like this show up at all.

[URL]

View 1 Replies

Implications Of Changing Column From Not Null To Nullable In Entity Framework?

Apr 1, 2011

I have to change the username column in my database to nullable, which means everywhere in my code, I now have to check username.HasValue and change references to username to username.Value. Is there anything I can do to avoid having to change all the references to username to username.Value?

View 1 Replies

SQL Server :: Implications Of Not Closing An Open Connection Declared Locally?

Oct 5, 2010

I was wondering about something. I'm supporting a .NET C# application which has a number of database connections declared locally as IDbConnection with MS SQL Server and NHibernate. These connections are declared locally and not explicitly closed after a specific operation is performed. Are these connections automatically closed after the local method is executed, or could these connections be floating around somewhere? We're having semaphore max out problems, and I'm trying to see if this may be the culprit. I'm doubtful, as I believe these connections would automatically close, but thought I'd throw out hte possibility.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved