• Stars
    star
    42
  • Rank 656,625 (Top 13 %)
  • Language
    Lua
  • License
    MIT License
  • Created over 9 years ago
  • Updated almost 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A redis client for lua

Redis library for Lua

Features

  • Optionally asynchronous
  • Compatible with Lua 5.1, 5.2, 5.3 and LuaJIT
  • Subscribe (PubSub) mode
  • Automatic pipelining (if you use more than one coroutine)

Why not _________?

  • redis-lua?
    • Not asynchronous
    • Relies on luasocket
    • Architecture doesn't support subscribe mode
  • lluv-redis?
    • Requires lluv/libuv
  • lua-resty-redis?
    • Only works inside of openresty/nginx
  • lua-hiredis?
    • Not asynchronous
    • Relies on hiredis C module
    • Architecture doesn't support subscribe mode
  • lua_redis
    • Not asynchronous
    • Relies on hiredis C module
    • Architecture doesn't support subscribe mode
  • sidereal?
    • Unmaintained
    • Asynchronous mode not really composable
    • Relies on luasocket
  • fend-redis?
    • Unmaintained
    • Relies on hiredis C module
    • requires ffi

Status

This project is a work in progress and not ready for production use.

Build Status Coverage Status

Installation

It's recommended to install lredis by using luarocks. This will automatically install run-time lua dependencies for you.

$ luarocks install --server=http://luarocks.org/dev lredis

Dependencies

For running tests

Development

Getting started

  • Clone the repo:

    $ git clone https://github.com/daurnimator/lredis.git
    $ cd lredis
    
  • Install dependencies

    $ luarocks install --only-deps lredis-scm-0.rockspec
    
  • Lint the code (check for common programming errors)

    $ luacheck .
    
  • Run tests and view coverage report (install tools first)

    $ busted -c
    $ luacov && less luacov.report.out
    
  • Install your local copy:

    $ luarocks make lredis-scm-0.rockspec
    

More Repositories

1

lua.vm.js

The project is superceded by Fengari. See https://fengari.io/
C
836
star
2

lua-http

HTTP Library for Lua. Supports HTTP(S) 1.0, 1.1 and 2.0; client and server.
Lua
785
star
3

lpeg_patterns

A collection of LPEG patterns
Lua
117
star
4

luatz

Time, Date and Timezone library for lua
Lua
108
star
5

lua-systemd

Systemd bindings for Lua
C
39
star
6

ldbus

Lua Bindings to dbus.
C
38
star
7

fifo.lua

Fifo library for Lua
Lua
35
star
8

mongol

A lua driver for mongodb
Lua
35
star
9

mmdblua

Maxmind database parser for lua
Lua
30
star
10

ffmpeg-lua-ffi

ffmpeg lua bindings using the ffi
Lua
29
star
11

lua-spawn

A lua library to spawn programs
C
26
star
12

lua-tui

lua library for creating a terminal UI
Lua
21
star
13

zig-autolua

Lua binding creator for zig
Zig
19
star
14

luacov-reporter-lcov

A luacov reporter for use with lcov
Lua
15
star
15

luasodium

Lua binding to libsodium (https://github.com/jedisct1/libsodium)
Lua
14
star
16

lomp2

A new take on lomp; now with luajit ffi!
Lua
13
star
17

lamt

Lua Audio Metadata Tool
Lua
12
star
18

lua-hydrogen

Lua bindings to libhydrogen
C
11
star
19

fengari-electron-example

JavaScript
10
star
20

lua-ffi-util

A utilities module for the lua ffi
Lua
10
star
21

lua-psl

Lua bindings to libpsl (https://github.com/rockdaboot/libpsl)
C
10
star
22

cqueues-pgsql

luapgsql with cqueues for non-blocking postgres queries
Lua
9
star
23

pg-kinesis-bridge

Listen for events from PostgreSQL and send them to AWS Kinesis
JavaScript
8
star
24

lua_cpp

A C pre-processor written in lua
Lua
8
star
25

openal-lua-ffi

openal lua bindings using the ffi
Lua
6
star
26

zig-piecetable

A PieceTable data structure for zig
Zig
4
star
27

lua-pg

Nice API to PostgreSQL
Lua
4
star
28

fengari-phaser-tutorial-02

HTML
4
star
29

zig-timeout-wheel

A zig port of william ahern's timer wheel library (https://github.com/wahern/timeout/)
Zig
4
star
30

lua-unistring

Lua bindings to libunistring (https://www.gnu.org/software/libunistring)
C
4
star
31

mod_systemd

systemd module for prosody
Lua
4
star
32

lua-autoconf-example

C
3
star
33

postgrest-benchmark

Benchmarking postgrest with @bduisenov
Shell
3
star
34

zig-unicode

A Zig unicode library
2
star
35

lua-idn2

Bindings to libidn2 https://www.gnu.org/software/libidn/libidn2/manual/libidn2.html
C
2
star
36

iconv-lua-ffi

Lua
2
star
37

justabit

JMAP <> notmuch bridge
Lua
2
star
38

onion-everywhere

A Firefox/Chrome extension that redirects to TOR-accessible versions of pages as advertised in Onion-Location headers
JavaScript
2
star
39

mad-lua-ffi

Lua
2
star
40

lua-pgquery

Lua bindings to libpg_query
C
1
star
41

l

A lua REPL
Lua
1
star
42

PKGBUILD-arcan-git

Shell
1
star
43

libsndfile-lua-ffi

Lua
1
star
44

luaThreading

Using the luajit ffi to do threading
Lua
1
star
45

wavpack-lua-ffi

wavpack lua bindings using the ffi
Lua
1
star