17 Dec 2009 07:27:04 UTC
- Development release
- Distribution: KinoSearch
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (5)
- Testers (41 / 0 / 8)
- KwaliteeBus factor: 0
- License: perl_5
- Activity24 month
- Download (810.65KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionCREAMYG Marvin Humphreyand 1 contributors
- Marvin Humphrey <marvin at rectangular dot com>
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.
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.