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.
use Data::RoundRobinShared; my $sr = new Data::RoundRobinShared(key => 'DataForProcess1',data=> \@data, simple_check => 1); my $item = $sr->next;
This module allows you to serve data in a round robin manner shared between processes using a namespace key to identify each data-set.
Constructor, an arrayref containing the data, a string as key should be provided to construct a Data::RoundRobinShared object.
Data::RoundRobinShared
Retrieve next value.
Release the shared memory.
Data::RoundRobin
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>
To install Data::RoundRobinShared, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Data::RoundRobinShared
CPAN shell
perl -MCPAN -e shell install Data::RoundRobinShared
For more information on module installation, please visit the detailed CPAN module installation guide.