$32 GRAYBYTE WORDPRESS FILE MANAGER $51

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/usr/share/perl5/Memoize/

HOME
Current File : /usr/share/perl5/Memoize//ExpireTest.pm
package Memoize::ExpireTest;

=head1 NAME

Memoize::ExpireTest - test for Memoize expiration semantics

=head1 DESCRIPTION

This module is just for testing expiration semantics.  It's not a very
good example of how to write an expiration module.

If you are looking for an example, I recommend that you look at the
simple example in the Memoize::Expire documentation, or at the code
for Memoize::Expire itself.

If you have questions, I will be happy to answer them if you send them
to mjd-perl-memoize+@plover.com.

=cut

$VERSION = '1.03';
my %cache;

sub TIEHASH {	
  my ($pack) = @_;
  bless \%cache => $pack;
}

sub EXISTS {
  my ($cache, $key) = @_;
  exists $cache->{$key} ? 1 : 0;
}

sub FETCH {
  my ($cache, $key) = @_;
  $cache->{$key};
}

sub STORE {
  my ($cache, $key, $val) = @_;
  $cache->{$key} = $val;
}

sub expire {
  my ($key) = @_;
  delete $cache{$key};
}

1;

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
14 Aug 2025 9.25 PM
root / root
0755
AnyDBM_File.pm
0.658 KB
28 Jul 2025 3.08 PM
root / root
0644
Expire.pm
11.43 KB
28 Jul 2025 3.08 PM
root / root
0644
ExpireFile.pm
1.025 KB
28 Jul 2025 3.08 PM
root / root
0644
ExpireTest.pm
0.862 KB
28 Jul 2025 3.08 PM
root / root
0644
NDBM_File.pm
1.453 KB
28 Jul 2025 3.08 PM
root / root
0644
SDBM_File.pm
1.451 KB
28 Jul 2025 3.08 PM
root / root
0644
Storable.pm
1.38 KB
28 Jul 2025 3.08 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF