Valkey module to replace built-in Lua with LuaJIT.
git submodule update --init --recursive./build.sh # Build module only
./build.sh --with-tests # Build module and Valkey test server
./build.sh --clean # Clean build artifactsModule output: build/libvalkeyluajit.so
# Build test infrastructure (first time only)
./build.sh --with-tests
# Run all tests
./tests/run-valkey-tests.sh
# Run specific tests
./tests/run-valkey-tests.sh --single unit/scripting
./tests/run-valkey-tests.sh --single unit/functionsvalkey-server --loadmodule build/libvalkeyluajit.soOr in valkey.conf:
loadmodule build/libvalkeyluajit.so
FFI is disabled by default for security. To enable:
# In valkey.conf after loadmodule
luajit.enable-ffi-api yesWARNING: FFI gives scripts unrestricted access to the process. This is NOT secure for untrusted scripts. Use only in trusted environments.