from Hacker News

LimDB, superfast networkless in-process caching for Nim

by rainmaking on 10/25/24, 1:38 PM with 1 comments

  • by rainmaking on 10/25/24, 1:38 PM

    Effortless superfast caching with Nim! Network calls like you need for redis really add up.

    Instead of using something like redis with its network round trips, you can write to a memory mapped file. You can do that safely and easily with LimDB in Nim.

    LimDB is a hashtable-like interface to LMDB, a mature fast thread-safe ACID3 memory-mapped-file database for the Nim programming language.

    It's just like using a hash table (the Nim equivalent to Python's dictionary or PHP's associative array) but the data stays put between restarts.