in reply to Re: Calling a function in a defined time interval in mod perl
in thread Calling a function in a defined time interval in mod perl

Thanks for your help. I looked at the Cache::FastMmap and it also says BerkeleyDB is the best overall for these kind of processing. I read the BDB document but is there a method (similar to expiration time) in BerkeleyDB that can be used to refresh the information. Also Can I do the following? Write a C app (that will run external from Apache/ModPerl) that will store the information in the BDB and put the CApp in a cronjob to refresh it every 20 minutes? Then all I will do in the perl section is just read the data. I am a newbie and I would appreciate your help.
  • Comment on Re^2: Calling a function in a defined time interval in mod perl

Replies are listed 'Best First'.
Re^3: Calling a function in a defined time interval in mod perl
by perrin (Chancellor) on Feb 06, 2005 at 21:43 UTC
    I think you'd be better off with Cache::FastMmap because it handles the expiration and can automatically fetch new values from the database when the cached data expires (see the read_cb() method). With BerkeleyDB you would have to do that yourself.