sub GetUser
{
my ($id, $user)=@_; # record number and hash reference to
populate
if (defined($UserCache[$id])) {
$user = $UserCache[$id];
return(1);
[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
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
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