[BACK]Return to Cached.pm CVS log [TXT][DIR] Up to [local] / openbsd / OpenBSDTorrents / lib / BT / MetaInfo

Diff for /openbsd/OpenBSDTorrents/lib/BT/MetaInfo/Cached.pm between version 1.6 and 1.7

version 1.6, 2005/05/05 21:10:50 version 1.7, 2005/05/05 21:29:13
Line 46 
Line 46 
         return $info;          return $info;
 }  }
   
 sub _load {  
         my $file = shift;  
         my $cache = shift;  
   
         my $basename = basename($file);  
   
         my $info = $cache->get( $basename );  
   
         unless (defined $info) {  
                 $info = BT::MetaInfo::_load($file);  
                 $cache->set( $basename, $info );  
         }  
         return $info;  
 }  
   
   
 sub save  sub save
 {  {

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>