Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Caching Hashtables

Reply
Thread Tools

Caching Hashtables

 
 
=?Utf-8?B?U3VuZGFyYXJhamFu?=
Guest
Posts: n/a
 
      07-24-2005
Dear Folks,
Is that possible to cache Hash tables in .Net (using
System.web.caching.cache).
is there any other structure available so that i can store key value pairs
and cache it.

--
S.Sundararajan
 
Reply With Quote
 
 
 
 
Yunus Emre ALP÷ZEN [MCSD.NET]
Guest
Posts: n/a
 
      07-24-2005
if want to store distinct values for each session, u should use Session
object,
otherwise u may use application and cache objects the choice..

But the best way (including web farms), serialize your hashtable to SQL
server..


--
HTH

Thanks,
Yunus Emre ALP÷ZEN
BSc, MCSD.NET

"Sundararajan" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Dear Folks,
> Is that possible to cache Hash tables in .Net (using
> System.web.caching.cache).
> is there any other structure available so that i can store key value pairs
> and cache it.
>
> --
> S.Sundararajan



 
Reply With Quote
 
 
 
 
Tim_Mac
Guest
Posts: n/a
 
      07-24-2005
hi,
just to emphasise what yunus said.. the application state and cache
objects *are* designed to store key/value pairs so they are ideally
suited to your task. the hashing is done internally.
one thing about the .net cache object is that it will expire after
around 10 minutes of inactivity on the site, even if you set a cache
expiration for a longer time. i develop sites for small businesses who
don't have constant traffic, so i prefer to use the application state
because it does not expire until IIS restarts.

hth
tim

 
Reply With Quote
 
Tim_Mac
Guest
Posts: n/a
 
      07-24-2005
hi,
just to emphasise what yunus said.. the application state and cache
objects *are* designed to store key/value pairs so they are ideally
suited to your task. the hashing is done internally.
one thing about the .net cache object is that it will expire after
around 10 minutes of inactivity on the site, even if you set a cache
expiration for a longer time. i develop sites for small businesses who
don't have constant traffic, so i prefer to use the application state
because it does not expire until IIS restarts.

hth
tim

 
Reply With Quote
 
Yunus Emre ALP÷ZEN [MCSD.NET]
Guest
Posts: n/a
 
      07-30-2005
For the problem u indicate expiration of .net cache object is reasoned IIS
configuration. U should set your application Session timeout: using inetmgr.
(Right Click your application choose home directory tab and click
configuration choose options tab from new window and set session timeout..)

--
HTH

Thanks,
Yunus Emre ALP÷ZEN
BSc, MCSD.NET

"Tim_Mac" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) oups.com...
> hi,
> just to emphasise what yunus said.. the application state and cache
> objects *are* designed to store key/value pairs so they are ideally
> suited to your task. the hashing is done internally.
> one thing about the .net cache object is that it will expire after
> around 10 minutes of inactivity on the site, even if you set a cache
> expiration for a longer time. i develop sites for small businesses who
> don't have constant traffic, so i prefer to use the application state
> because it does not expire until IIS restarts.
>
> hth
> tim
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Populating ddl using hashtables shamila.thakur@gmail.com ASP .Net 1 10-17-2005 05:00 PM
Need Help with Hashtables! james.diee13@gmail.com Java 2 09-29-2005 06:31 PM
Need Help with Hashtables! james.diee13@gmail.com Java 3 09-29-2005 05:12 AM
Manipulating HashTables Andrew Sweetman ASP .Net 2 08-22-2003 10:32 PM
Java Hashtables J.Eddy Java 3 07-17-2003 07:39 AM



Advertisments