Data::RecordStore::Silo - Indexed Fixed Record Store
use Data::RecordStore::Silo; my $silo = Data::RecordStore->open_silo( $directory, $template, $record_size, $max_file_size ); my $id = $silo->next_id; $silo->put_record( $id, [ 2234234324234, 42, "THIS IS SOME TEXT" ] ); my $record = $silo->get_record( $id ); my( $long_val, $int_val, $text ) = @$record; my $count = $silo->entry_count; my $next_id = $silo->push( [ 999999, 12, "LIKE A STACK" ] ); my $newcount = $silo->entry_count; $newcount == $count + 1; $record = $silo->peek; $newcount == $silo->entry_count; $record = $silo->pop; my $newestcount = $silo->entry_count; $newestcount == $newcount - 1; my $reopened_silo = Data::RecordStore->reopen_silo( $directory );
Copyright (c) 2012 - 2019 Eric Wolf. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Data::RecordStore, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Data::RecordStore
CPAN shell
perl -MCPAN -e shell install Data::RecordStore
For more information on module installation, please visit the detailed CPAN module installation guide.