Skip to content

uleelx/ledis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ledis

Ledis is a Redis-Protocol compatible server which provides a subset of Redis commands.
It uses FlatDB as the database backend that persists on disk.

Usage

Ledis runs very well on LuaJIT 2.1(recommended) and it supports Lua 5.1 to Lua 5.4.x though.

Run this with LuaJIT:

$ luajit ledis-server.lua

or this with Lua 5.1~5.4:

$ lua ledis-server.lua

Then it will listen to the TCP port 6379 on 127.0.0.1 (by default) and wait for Redis clients to connect.

Some options:

$ luajit ledis-server.lua --host 0.0.0.0
$ luajit ledis-server.lua --port 6379

Benchmark

Maybe it fits for local development or cases of low-load. Look at this.

TODO

Ledis is still in its early stage. It means it may be so buggy that you SHOULD NOT use it in production.

  • Improve performance
  • Implement more commands like AUTH
  • Make it robust enough for production environment

Dependencies

License

This is free and unencumbered software released into the public domain.

Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means.

In jurisdictions that recognize copyright laws, the author or authors of this software dedicate any and all copyright interest in the software to the public domain. We make this dedication for the benefit of the public at large and to the detriment of our heirs and successors. We intend this dedication to be an overt act of relinquishment in perpetuity of all present and future rights to this software under copyright law.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

For more information, please refer to https://unlicense.org

About

A Redis-Protocol compatible server written in Lua

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages