NAME

Cache::FastMmap::Tie - Using Cache::FastMmap as hash

SYNOPSIS

use Cache::FastMmap::Tie; my $mmap = tie my %hash, 'Cache::FastMmap::Tie', { share_file => "file_name", cache_size => "1k", expire_time=> "10m", }; $hash{ABC} = 'abc'; $hash{abc_def} = [qw(ABC DEF)]; $hash{xyz_XYZ} = {aaa=>'AAA',BBB=>[qw(ccc DDD),{eee=>'FFF'}],xxx=>'YYY'};

print $hash{ABC}; # $mmap->get('ABC');

for ( keys %hash ) { print $hash{$_}; # $mmap->get($_); }

DESCRIPTION

Tie for Cache::FastMmap. Read `perldoc perltie`

AUTHOR

Yuji Suzuki <yuji.suzuki.perl@gmail.com>

LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSO