[Rt-commit] r5851 - in Cache-Simple-TimedExpiry: .

jesse at bestpractical.com jesse at bestpractical.com
Mon Sep 4 14:18:18 EDT 2006


Author: jesse
Date: Mon Sep  4 14:18:17 2006
New Revision: 5851

Modified:
   Cache-Simple-TimedExpiry/   (props changed)
   Cache-Simple-TimedExpiry/Changes
   Cache-Simple-TimedExpiry/lib/Cache/Simple/TimedExpiry.pm

Log:
 r27027 at 231:  jesse | 2006-09-04 14:18:10 -0400
 * Doc patch from Terrence Brannon


Modified: Cache-Simple-TimedExpiry/Changes
==============================================================================
--- Cache-Simple-TimedExpiry/Changes	(original)
+++ Cache-Simple-TimedExpiry/Changes	Mon Sep  4 14:18:17 2006
@@ -1,3 +1,6 @@
+
+    - Doc updates from Terrence Brannon (metaperl)
+
 0.26 Thu Aug 24 18:16:08 EDT 2006
     - Signature fixed on distribution
 

Modified: Cache-Simple-TimedExpiry/lib/Cache/Simple/TimedExpiry.pm
==============================================================================
--- Cache-Simple-TimedExpiry/lib/Cache/Simple/TimedExpiry.pm	(original)
+++ Cache-Simple-TimedExpiry/lib/Cache/Simple/TimedExpiry.pm	Mon Sep  4 14:18:17 2006
@@ -6,6 +6,35 @@
 
 $VERSION = '0.26';
 
+=head1 NAME
+
+Cache::Simple::TimedExpiry
+
+=head2 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;
+
+
+=cut
+
+
 # 0 - expiration delay
 # 1 - hash
 # 2 - expiration queue
@@ -138,32 +167,6 @@
 
 
 
-=head1 NAME
-
-Cache::Simple::TimedExpiry
-
-=head2 EXAMPLE 
-
-package main;
-use strict;
-use warnings;
-
-
-my $h = new Cache::Simple::TimedExpiry;
-
-$h->set( Forever => "Don't expire", 0);
-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;
-
 =head1 AUTHOR
 
 Jesse Vincent <jesse at bestpractical.com>


More information about the Rt-commit mailing list