Skip to content

lmdb: Safe API for manipulating LMDB databases using nginx-module-lua

Installation

If you haven't set up RPM repository subscription, sign up. Then you can proceed with the following steps.

CentOS/RHEL 7 or Amazon Linux 2

yum -y install https://extras.getpagespeed.com/release-latest.rpm
yum -y install lua-resty-lmdb

CentOS/RHEL 8+, Fedora Linux, Amazon Linux 2023

yum -y install https://extras.getpagespeed.com/release-latest.rpm
yum -y install lua5.1-resty-lmdb

To use this Lua library with NGINX, ensure that nginx-module-lua is installed.

This document describes lua-resty-lmdb v1.4.1 released on Nov 24 2023.


This module allows OpenResty applications to use the LMDB (Lightning Memory-Mapped Database) inside the Nginx worker process. It has two parts, a core module built into Nginx that controls the life cycle of the database environment, and a FFI based Lua binding for interacting with the module to access/change data.

GitHub

You may find additional configuration tips and documentation for this module in the GitHub repository for nginx-module-lmdb.