The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Data::RoundRobinShared - Serve data in a round robin manner, keeping the data in a shared memory so that it can be used by multiple processes and each get data in a roundrobin manner.

SYNOPSIS

        use Data::RoundRobinShared;

        my $sr = new Data::RoundRobinShared(key => 'DataForProcess1',data=> \@data, simple_check => 1);
        my $item = $sr->next;

DESCRIPTION

This module allows you to serve data in a round robin manner shared between processes using a namespace key to identify each data-set.

METHODS

new

Constructor, an arrayref containing the data, a string as key should be provided to construct a Data::RoundRobinShared object.

next

Retrieve next value.

remove

Release the shared memory.

SEE ALSO

Data::RoundRobin

COPYRIGHT

Copyright 2010 by S Pradeep <pradeep@pradeep.net.in>

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

See <http://www.perl.com/perl/misc/Artistic.html>