DeWitt Clinton - 2001-03-13

Logged In: YES
user_id=11107

I see exactly what you are getting at here. I highly
recommend you check out Sam Tregar's excellent
IPC::SharedCache module on CPAN. He allows you to do this
with a callback routine on failed gets. Even better, he
allows a pluggable validation method that enables you define
any sort of expiration criteria you want.

Of course, you can easily do this with Cache::Cache, as
well. Simply pick your favourite implementation (say
Cache::FileCache) and overload the get method.

Send me an email and we can discuss.