Linux iad1-shared-b7-18 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
Apache
: 67.205.6.31 | : 216.73.216.171
Cant Read [ /etc/named.conf ]
8.2.29
fernandoquevedo
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
share /
perl5 /
Cache /
RemovalStrategy /
[ HOME SHELL ]
Name
Size
Permission
Action
FIFO.pm
1.3
KB
-rw-r--r--
LRU.pm
1.3
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : LRU.pm
=head1 NAME Cache::RemovalStrategy::LRU - LRU Removal Strategy for a Cache =head1 DESCRIPTION Implements a Least Recently Used removal strategy for a Cache. When removing entries from the cache, the 'stalest' will be removed first. =head1 METHODS See Cache::RemovalStrategy for details. =cut package Cache::RemovalStrategy::LRU; require 5.006; use strict; use warnings; use base qw(Cache::RemovalStrategy); use fields qw(); sub new { my Cache::RemovalStrategy::LRU $self = shift; $self = fields::new($self) unless ref $self; $self->SUPER::new(@_); return $self; } sub remove_size { my Cache::RemovalStrategy::LRU $self = shift; my ($cache, $size) = @_; while ($size > 0) { my $removed = $cache->remove_stalest(); defined $removed or last; $size -= $removed; } } 1; __END__ =head1 SEE ALSO Cache =head1 AUTHOR Chris Leishman <chris@leishman.org> Based on work by DeWitt Clinton <dewitt@unto.net> =head1 COPYRIGHT Copyright (C) 2003-2006 Chris Leishman. All Rights Reserved. This module is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either expressed or implied. This program is free software; you can redistribute or modify it under the same terms as Perl itself. $Id: LRU.pm,v 1.4 2006/01/31 15:23:58 caleishm Exp $ =cut
Close