Simon Perreault wrote:
Hi,
Is there a good way to have request-local storage? For example, I want to
cache stuff (file reading primarily) for the length of a given request, and
have that cache be local to the request (ie. other concurrent requests have
separate caches). How would you do that? It should not matter wether Apache
is threading or forking.
$r->notes for strings
$r->pnotes for perl scalars
http://perl.apache.org/docs/2.0/api/Apache2/RequestRec.html#C_notes_
http://perl.apache.org/docs/2.0/api/Apache2/RequestUtil.html#C_pnotes_
--
__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com