Cache::Simple::TimedExpiry man page on Alpinelinux

Man page or keyword search:  
man Server   18016 pages
apropos Keyword Search (all sections)
Output format
Alpinelinux logo
[printable version]

Cache::Simple::TimedExUser(Contributed Perl DocumCache::Simple::TimedExpiry(3)

NAME
       Cache::Simple::TimedExpiry

   EXAMPLE
	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;

   new
       Set up a new cache object

   expire_after SECONDS
       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.

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

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

       (Can also be called as get)

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

       (Can also be called as set)

AUTHOR
       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>

perl v5.18.2			  2006-11-20	 Cache::Simple::TimedExpiry(3)
[top]

List of man pages available for Alpinelinux

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net