GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Cache::Simple::TimedExpiry(3) User Contributed Perl Documentation Cache::Simple::TimedExpiry(3)

Cache::Simple::TimedExpiry

 package main; 

 use strict; 
 use warnings;
 $,=' '; $|++;

 use Cache::Simple::TimedExpiry;
 my $h =  Cache::Simple::TimedExpiry->new;

 $h->set( DieQuick => "No duration!", 0); 
 print $h->elements;
 do { $h->set($_,"Value of $_", 1); sleep 2;} 
    for qw(Have a nice day you little monkey); 


 print $h->elements; $h->dump; sleep 4; print $h->elements; $h->dump;

 print time;

Set up a new cache object

Set the cache's expiry policy to expire entries after SECONDS seconds. Setting this changes the expiry policy for pre-existing cache entries and for new ones.

Return true if the cache has an entry with the key KEY

Return the cache entry with key KEY. Returns undef if there is no such entry

(Can also be called as get)

Store VALUE in the cache with accessor KEY. Expire it from the cache at or after EXPIRYTIME.

(Can also be called as set)

Jesse Vincent <jesse@bestpractical.com> Some of the heavy lifting was designed by Robert Spier <rspier@pobox.com>

Copyright 2004 Jesse Vincent <jesse@bestpractical.com>

2006-11-20 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.