in reply to Calling a function in a defined time interval in mod perl

Use Cache::FastMmap. It handles the expiration and is many times faster than IPC::Shareable.
  • Comment on Re: Calling a function in a defined time interval in mod perl

Replies are listed 'Best First'.
Re^2: Calling a function in a defined time interval in mod perl
by Anonymous Monk on Feb 06, 2005 at 20:20 UTC
    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.
      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.