NAME

Collection::Utl::Mirror -  Mirror two collections.

SYNOPSIS

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 ;

DESCRIPTION

Mirror two collections.

_fetch

Fetch keys from collection1. And then from collection2

_create

create items

_store

list_ids

Return union of keys from collection1 and collection2

SEE ALSO

Tie::StdHash

AUTHOR

Zahatski Aliaksandr, <zag@cpan.org>

COPYRIGHT AND LICENSE

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.