XUtils

lredis

Asynchronous Redis client with pipelining and Pub/Sub support; based on cqueues.


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)

Status

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

Build Status Coverage Status

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
    

Articles

  • coming soon...