Collection::Utl::Mirror - Mirror two collections.
use Collection::Utl::Mirror; my $coll1 = ( new Collection::Utl::Mem:: mem => \%h1 );# fast but nonstable source ( Memcached ) my $coll2 = ( new Collection::Utl::Mem:: mem => \%h2 );# slow but stable source ( database ) my $mirror_coll1 = new Collection::Utl::Mirror:: $coll1, $coll2 ;
Mirror two collections.
Fetch keys from collection1. And then from collection2
create items
Return union of keys from collection1 and collection2
Tie::StdHash
Zahatski Aliaksandr, <zag@cpan.org>
Copyright (C) 2005-2009 by Zahatski Aliaksandr
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.
To install Collection, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Collection
CPAN shell
perl -MCPAN -e shell install Collection
For more information on module installation, please visit the detailed CPAN module installation guide.