27 Oct 2007 19:46:10 UTC
- Development release
- Distribution: KinoSearch
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (5)
- Testers (21 / 5 / 2)
- KwaliteeBus factor: 0
- License: perl_5
- Activity24 month
- Download (460.82KB)
- 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.
my $folder = KinoSearch::Store::RAMFolder->new; # or sometimes... my $folder = KinoSearch::Store::RAMFolder->new( path => '/path/to/folder', );
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 );
Constructor. Takes one optional parameter,
pathis supplied, KinoSearch will try to read an FSFolder at that location into memory; otherwise the Folder starts out empty.
Copyright 2005-2007 Marvin Humphrey
See KinoSearch version 0.20.