RE: Maintaining a Cache of Hash References

2002-01-16 Thread Tomasi, Chuck
sub GetUser { my ($id, $user)=@_; # record number and hash reference to populate if (defined($UserCache[$id])) { $user = $UserCache[$id]; return(1);

RE: Maintaining a Cache of Hash References

2002-01-16 Thread Tomasi, Chuck
[mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 15, 2002 11:59 AM To: '[EMAIL PROTECTED]' Subject: Re: Maintaining a Cache of Hash References On Tue, Jan 15, 2002 at 11:41:28AM -0600, Tomasi, wrote: I'm trying to maintain a cache of hashes to reduce database hits. What I want

Re: Maintaining a Cache of Hash References

2002-01-15 Thread Jeff 'japhy' Pinyan
On Jan 15, Tomasi, Chuck said: I'm trying to maintain a cache of hashes to reduce database hits. What I want is to determine if I've retrieved the data from the DB before, if so, just pass back the copy of information used last time, otherwise read it from the DB and make a note of it. It

Re: Maintaining a Cache of Hash References

2002-01-15 Thread Frank
On Tue, Jan 15, 2002 at 11:41:28AM -0600, Tomasi, wrote: I'm trying to maintain a cache of hashes to reduce database hits. What I want is to determine if I've retrieved the data from the DB before, if so, just pass back the copy of information used last time, otherwise read it from the DB