Use Cache::FastMmap. It handles the expiration and is many times faster than IPC::Shareable. | [reply] |
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.
| [reply] |
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.
| [reply] |
| [reply] |
Don't use Apache::Cache. It is much slower than other cache modules, or even MySQL.
| [reply] |