Objects::Collection::Mirror - Mirror of two collections.
use Objects::Collection::Mirror; my $coll1 = ( new Collection::Mem:: mem => \%h1 );# fast but nonstable source ( Memcached ) my $coll2 = ( new Collection::Mem:: mem => \%h2 );# slow but stable source ( database ) my $mirror_coll1 = new Objects::Collection::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-2008 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 Objects::Collection, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Objects::Collection
CPAN shell
perl -MCPAN -e shell install Objects::Collection
For more information on module installation, please visit the detailed CPAN module installation guide.