Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: framework to handle timeouts/internal caching?

by fglock (Vicar)
on Oct 04, 2004 at 21:01 UTC ( [id://396384]=note: print w/replies, xml ) Need Help??


in reply to framework to handle timeouts/internal caching?
in thread Web app frameworks - I am totally confused!

I can only cache for about an hour to keep things fresh however. So I have to do a fair amount of work to accomplish that ...

Cache::Cache can help you here.

my $cache = new Cache::FileCache( ); my $result = $cache->get( "result" ); if ( not defined $result { $result = expensive_function(); $cache->set( "result", $result, "1 hour" ); }

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://396384]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (2)
As of 2024-04-26 04:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found