flush lru cache on reload
[spider.git] / perl / Chain.pm
index c4fa99a79b5d45690e11e66fb9c5eee1b5cd171b..c065d17a62305b6c9fb224f0eb51a45b5ab34c1b 100644 (file)
@@ -156,6 +156,13 @@ sub count
        return $count;
 }
 
+sub close
+{
+       my $base = shift;
+       $base->flush;
+       $base->[PREV] = $base->[NEXT] = undef;
+}
+
 1;
 __END__
 # Below is the stub of documentation for your module. You better edit it!