---
name: "KinoSearch::Store::RAMInvIndex"
section: "3pm"
platform: "linux"
package: "libkinosearch-perl"
version: "0.165-2"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/KinoSearch::Store::RAMInvIndex"
---

# KinoSearch::Store::RAMInvIndex(3pm)

in-memory InvIndex

## NAME

KinoSearch::Store::RAMInvIndex - in-memory InvIndex

## SYNOPSIS

```
    my $invindex = KinoSearch::Store::RAMInvIndex->new(
        path   => '/path/to/invindex',
    );
    # or...
    my $invindex = KinoSearch::Store::RAMInvIndex->new;
```

## DESCRIPTION

RAMInvIndex is an entirely in-memory implementation of KinoSearch::Store::InvIndex.  It serves two main purposes.

First, it's possible to load an existing FSInvIndex into memory, which can improve search-speed -- if you have that kind of RAM to spare.  Needless to say, any FSInvIndex you try to load this way should be appropriately modest in size.

Second, RAMInvIndex is handy for testing and development.

## CONSTRUCTOR

### new

Create a RAMInvIndex object.  `"new"` takes one optional parameter, `"path"`. If `"path"` is supplied, KinoSearch will try to read an FSInvIndex at that location into memory.

## COPYRIGHT

Copyright 2005-2009 Marvin Humphrey

## LICENSE, DISCLAIMER, BUGS, etc.

See KinoSearch version 0.165.
