KinoSe...nvIndex(3pm)

πŸ’– KinoSearch1::Store::RAMInvIndex β€” in-memory InvIndex πŸ’–

okay bestie, so this is a page from the User Contributed Perl Documentation, and it's literally the cutest little storage class in the KinoSearch1 universe. sit down, we're doing indexes in RAM today 🧠✨


✨ NAME ✨

KinoSearch1::Store::RAMInvIndex β€” an in-memory InvIndex. that's it, that's the name, she's giving exactly what she says on the tin πŸ’…


🌸 SYNOPSIS 🌸

my $invindex = KinoSearch1::Store::RAMInvIndex->new(
    path   => '/path/to/invindex',
);

# or...
my $invindex = KinoSearch1::Store::RAMInvIndex->new;

see how there's two ways? one with a path, one just rawdogging it with no arguments at all. both valid, both iconic 🫢


πŸ¦‹ DESCRIPTION πŸ¦‹

RAMInvIndex is an entirely in-memory implementation of KinoSearch1::Store::InvIndex. like, every last bit of it lives in RAM, no disk, no filesystem, no nothing. and she serves two main purposes, which, slay:

  • first β€” you can load an existing FSInvIndex into memory, and that can improve search-speed! which is amazing... if you have that kind of RAM to spare. πŸ’€ and ngl, the FSInvIndex you load this way should be appropriately modest in size. no cap, we are not loading a whole internet into memory bestie.
  • second β€” RAMInvIndex is lowkey so handy for testing and development. like that's her little side hustle and she's good at it. 🌈

πŸŽ€ CONSTRUCTOR πŸŽ€

πŸ’œ new

Create a RAMInvIndex object. periodt.

new takes one optional parameter, path.

  • if path is supplied, KinoSearch1 will try to read an FSInvIndex at that location into memory 🧚
  • if path is not supplied... she just exists. fresh. empty. full of potential. ✨

Copyright 2005-2010 Marvin Humphrey 🫑


πŸ“œ LICENSE, DISCLAIMER, BUGS, etc. πŸ“œ

See KinoSearch1 version 1.01. (yes, that's the whole thing, go look it up bestie, the legal girlies wrote it all out over there πŸ“–)


heads up πŸ’– this one's short but she's mighty. in-memory storage means FAST but also RAM HUNGRY β€” read the description again if you were about to load something huge. i'm just the messenger πŸ™ˆ

and that's a wrap, my love! this page is from perl v5.42.3, dated 2026-08-20, and in the KinoSe...nvIndex(3pm) section of the manual β€” yes the header really is abbreviated like that, we don't make the rules, we just vibe with them πŸŒΈπŸ’…βœ¨

πŸ“¦ where this page comes from