vit has asked for the wisdom of the Perl Monks concerning the following question:
3) Can somebody who has a similar task give me an example of working usage.use Cache::FileCache; my $cache = new Cache::FileCache( ); my $customer = $cache->get( $name ); if ( not defined $customer ) { $customer = get_customer_from_db( $name ); $cache->set( $name, $customer, "10 minutes" ); } return $customer;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Cache::Cache questions
by moritz (Cardinal) on Jun 30, 2009 at 16:56 UTC | |
by vit (Friar) on Jun 30, 2009 at 17:20 UTC | |
by moritz (Cardinal) on Jun 30, 2009 at 19:22 UTC | |
by vit (Friar) on Jun 30, 2009 at 19:48 UTC | |
by mravikiran (Initiate) on Jul 21, 2009 at 18:07 UTC | |
|
Re: Cache::Cache questions
by Your Mother (Archbishop) on Jun 30, 2009 at 16:58 UTC |