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


Objects-Collection documentation  | view source Contained in the Objects-Collection distribution.

Index


NAME

Top

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

SYNOPSIS

Top

    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

Top

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

Top

Tie::StdHash

AUTHOR

Top

Zahatski Aliaksandr, <zag@cpan.org>

COPYRIGHT AND LICENSE

Top


Objects-Collection documentation  | view source Contained in the Objects-Collection distribution.