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.47
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 /
[ HOME SHELL ]
Name
Size
Permission
Action
File
[ DIR ]
drwxr-xr-x
Memory
[ DIR ]
drwxr-xr-x
Null
[ DIR ]
drwxr-xr-x
RemovalStrategy
[ DIR ]
drwxr-xr-x
BaseCache.pm
14.73
KB
-rw-r--r--
BaseCacheTester.pm
2.76
KB
-rw-r--r--
Cache.pm
8.22
KB
-rw-r--r--
CacheMetaData.pm
5.73
KB
-rw-r--r--
CacheSizer.pm
3.94
KB
-rw-r--r--
CacheTester.pm
13.05
KB
-rw-r--r--
CacheUtils.pm
2.85
KB
-rw-r--r--
Entry.pm
8.37
KB
-rw-r--r--
File.pm
16.72
KB
-rw-r--r--
FileBackend.pm
14.06
KB
-rw-r--r--
FileCache.pm
7.17
KB
-rw-r--r--
IOString.pm
3.24
KB
-rw-r--r--
Memory.pm
9.64
KB
-rw-r--r--
MemoryBackend.pm
2.57
KB
-rw-r--r--
MemoryCache.pm
2.76
KB
-rw-r--r--
Null.pm
2.27
KB
-rw-r--r--
NullCache.pm
2.21
KB
-rw-r--r--
Object.pm
3.4
KB
-rw-r--r--
RemovalStrategy.pm
1.03
KB
-rw-r--r--
SharedMemoryBackend.pm
4.72
KB
-rw-r--r--
SharedMemoryCache.pm
3.4
KB
-rw-r--r--
SizeAwareCache.pm
3.04
KB
-rw-r--r--
SizeAwareCacheTester.pm
5.66
KB
-rw-r--r--
SizeAwareFileCache.pm
3.68
KB
-rw-r--r--
SizeAwareMemoryCache.pm
3.35
KB
-rw-r--r--
SizeAwareSharedMemoryCache.pm
2.55
KB
-rw-r--r--
Tester.pm
13.44
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : CacheUtils.pm
###################################################################### # $Id: CacheUtils.pm,v 1.39 2003/04/15 14:46:19 dclinton Exp $ # Copyright (C) 2001-2003 DeWitt Clinton All Rights Reserved # # Software distributed under the License is distributed on an "AS # IS" basis, WITHOUT WARRANTY OF ANY KIND, either expressed or # implied. See the License for the specific language governing # rights and limitations under the License. ###################################################################### package Cache::CacheUtils; use strict; use vars qw( @ISA @EXPORT_OK ); use Cache::Cache; use Error; use Exporter; use File::Spec; use Storable qw( nfreeze thaw dclone ); @ISA = qw( Exporter ); @EXPORT_OK = qw( Assert_Defined Build_Path Clone_Data Freeze_Data Static_Params Thaw_Data ); # throw an Exception if the Assertion fails sub Assert_Defined { if ( not defined $_[0] ) { my ( $package, $filename, $line ) = caller( ); throw Error::Simple( "Assert_Defined failed: $package line $line\n" ); } } # Take a list of directory components and create a valid path sub Build_Path { my ( @p_elements ) = @_; # TODO: add this to Untaint_Path or something # ( $p_unique_key !~ m|[0-9][a-f][A-F]| ) or # throw Error::Simple( "key '$p_unique_key' contains illegal characters'" ); if ( grep ( /\.\./, @p_elements ) ) { throw Error::Simple( "Illegal path characters '..'" ); } return File::Spec->catfile( @p_elements ); } # use Storable to clone an object sub Clone_Data { my ( $p_object ) = @_; return defined $p_object ? dclone( $p_object ) : undef; } # use Storable to freeze an object sub Freeze_Data { my ( $p_object ) = @_; return defined $p_object ? nfreeze( $p_object ) : undef; } # Take a parameter list and automatically shift it such that if # the method was called as a static method, then $self will be # undefined. This allows the use to write # # sub Static_Method # { # my ( $parameter ) = Static_Params( @_ ); # } # # and not worry about whether it is called as: # # Class->Static_Method( $param ); # # or # # Class::Static_Method( $param ); sub Static_Params { my $type = ref $_[0]; if ( $type and ( $type !~ /^(SCALAR|ARRAY|HASH|CODE|REF|GLOB|LVALUE)$/ ) ) { shift( @_ ); } return @_; } # use Storable to thaw an object sub Thaw_Data { my ( $p_frozen_object ) = @_; return defined $p_frozen_object ? thaw( $p_frozen_object ) : undef; } 1; __END__ =pod =head1 NAME Cache::CacheUtils -- miscellaneous utility routines =head1 DESCRIPTION The CacheUtils package is a collection of static methods that provide functionality useful to many different classes. =head1 AUTHOR Original author: DeWitt Clinton <dewitt@unto.net> Last author: $Author: dclinton $ Copyright (C) 2001-2003 DeWitt Clinton =cut
Close