> Instead of (or perhaps as well as) a MAXAGE parameter, why not
> have an EXPIRES parameter which takes similar values to an HTTP
> expires header?

<sane>
This got me thinking that you might also want to set something to be
another value when it times out. So you might want to set it to say, '10'
or a nice user friendly string 'No longer valid'.

Or you might want to tie the previous value so that your scalar returns to
it's orignal value after a while.
</sane>

<mildlyInsane>
Then I got thinking even more and decided that you might want to have a
whole host of values, so maybe you want to to pass it a ref to a sub that
could compute values.  For example, you could use it to store the IP of a
domain name and have it automagically request a new one after some
predefined time period so that you that your long living server copes
with a domain name changes but still caches...
</mildyInsane>

<Nuts>
Then I got to thinking that maybe you want to develop Tie::Sub::Timeout
(which isn't really right, as you're not tieing) which allows you to
replace subs with other subs for a short period of time.
</Nuts>

Later.

Mark.

-- 
print "\n",map{my$a="\n"if(length$_>6);' 'x(36-length($_)/2)."$_\n$a"} (
   Name  => 'Mark Fowler',        Title => 'Technology Developer'      ,
   Firm  => 'Profero Ltd',        Web   => 'http://www.profero.com/'   ,
   Email => '[EMAIL PROTECTED]',   Phone => '+44 (0) 20 7700 9960'      )





Reply via email to