KinoSearch::Store::RAMFolder - In-memory Folder implementation.
my $folder = KinoSearch::Store::RAMFolder->new; # or sometimes... my $folder = KinoSearch::Store::RAMFolder->new( path => '/path/to/folder', );
In-memory Folder implementation.
RAMFolder is an entirely in-memory implementation of KinoSearch::Store::Folder. It serves two main purposes.
First, it's possible to load an existing FSFolder into memory, which can improve search-speed -- if you have that kind of RAM to spare. Needless to say, any FSFolder you try to load this way should be appropriately modest in size.
Second, RAMFolder is handy for testing and development.
my $folder = KinoSearch::Store::RAMFolder->new( path => '/path/to/folder', # optional );
path - If supplied, attempt to read an FSFolder at that location into memory; otherwise the Folder starts out empty.
KinoSearch::Store::RAMFolder isa KinoSearch::Store::Folder isa KinoSearch::Obj.
Copyright 2005-2009 Marvin Humphrey
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install KSx::Simple, copy and paste the appropriate command in to your terminal.
cpanm
cpanm KSx::Simple
CPAN shell
perl -MCPAN -e shell install KSx::Simple
For more information on module installation, please visit the detailed CPAN module installation guide.