Zahatski Aliaksandr > Objects-Collection-0.37 > Objects::Collection::Mirror

Download:
Objects-Collection-0.37.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.01   Source  

NAME ^

 Objects::Collection::Mirror -  Mirror of two collections.

SYNOPSIS ^

    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 ;

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-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.

syntax highlighting: