.NET Cache Options?

0 views
Skip to first unread message

toranb

unread,
Nov 15, 2007, 3:37:13 PM11/15/07
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
I'm new to this group, but after a quick search I didn't see a solid
answer to this question so here goes.

If cache lives in the System.Web.Caching namespace what is the
appropriate technology to use in a service layer or data access layer
to optimize lookups, etc?

Peter Groenewegen

unread,
Nov 16, 2007, 10:28:59 AM11/16/07
to DotNetDe...@googlegroups.com
It can be used to cache Global stuff for you website.
- config setting
- cache files from disk
- cache other stuff which is the same for all users

Andrew Badera

unread,
Nov 16, 2007, 10:46:20 AM11/16/07
to DotNetDe...@googlegroups.com
You can also establish your own application cache through the use of static classes/variables.

What do you mean by, appropriate technologies? To access the cache(s)? Simple best-current-practice coding. Hashtables and generic Lists are a favorite for caching. And any time you need to hit every item in a collection, iterate, don't enumerate. (for n = 0 to ... rather than foreach).

--Andrew Badera
Reply all
Reply to author
Forward
0 new messages