Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: framework to handle timeouts/internal caching?

by fglock (Vicar)
on Oct 04, 2004 at 21:01 UTC ( #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
Node Status?
node history
Node Type: note [id://396384]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (3)
As of 2021-06-17 05:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What does the "s" stand for in "perls"? (Whence perls)












    Results (82 votes). Check out past polls.

    Notices?