{"id":13896329,"url":"https://github.com/daurnimator/lredis","last_synced_at":"2025-04-15T23:46:49.428Z","repository":{"id":54532345,"uuid":"42848386","full_name":"daurnimator/lredis","owner":"daurnimator","description":"A redis client for lua","archived":false,"fork":false,"pushed_at":"2021-02-15T09:42:56.000Z","size":24,"stargazers_count":42,"open_issues_count":7,"forks_count":7,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-29T02:51:29.086Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/daurnimator.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-09-21T06:39:28.000Z","updated_at":"2024-11-13T12:13:02.000Z","dependencies_parsed_at":"2022-08-13T18:50:52.752Z","dependency_job_id":null,"html_url":"https://github.com/daurnimator/lredis","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daurnimator%2Flredis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daurnimator%2Flredis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daurnimator%2Flredis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daurnimator%2Flredis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daurnimator","download_url":"https://codeload.github.com/daurnimator/lredis/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249173060,"owners_count":21224481,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-06T18:02:50.354Z","updated_at":"2025-04-15T23:46:49.393Z","avatar_url":"https://github.com/daurnimator.png","language":"Lua","funding_links":[],"categories":["Lua","资源","Resources"],"sub_categories":["Data Stores","Database drivers"],"readme":"# Redis library for Lua\n\n## Features\n\n  - Optionally asynchronous\n  - Compatible with Lua 5.1, 5.2, 5.3 and [LuaJIT](http://luajit.org/)\n  - [Subscribe (PubSub) mode](http://redis.io/topics/pubsub)\n  - Automatic pipelining (if you use more than one coroutine)\n\n## Why not **_________**?\n\n  - [redis-lua](https://github.com/nrk/redis-lua)?\n      - Not asynchronous\n      - Relies on [luasocket](http://www.impa.br/~diego/software/luasocket)\n      - Architecture doesn't support subscribe mode\n  - [lluv-redis](https://github.com/moteus/lua-lluv-redis)?\n      - Requires lluv/libuv\n  - [lua-resty-redis](https://github.com/openresty/lua-resty-redis)?\n      - Only works inside of openresty/nginx\n  - [lua-hiredis](https://github.com/agladysh/lua-hiredis)?\n      - Not asynchronous\n      - Relies on hiredis C module\n      - Architecture doesn't support subscribe mode\n  - [lua_redis](https://github.com/omrikiei/lua_redis)\n      - Not asynchronous\n      - Relies on hiredis C module\n      - Architecture doesn't support subscribe mode\n  - [sidereal](https://github.com/silentbicycle/sidereal)?\n      - Unmaintained\n      - Asynchronous mode not really composable\n      - Relies on [luasocket](http://www.impa.br/~diego/software/luasocket)\n  - [fend-redis](https://github.com/chatid/fend-redis)?\n      - Unmaintained\n      - Relies on hiredis C module\n      - requires ffi\n\n\n# Status\n\nThis project is a work in progress and not ready for production use.\n\n[![Build Status](https://travis-ci.org/daurnimator/lredis.svg)](https://travis-ci.org/daurnimator/lredis)\n[![Coverage Status](https://coveralls.io/repos/daurnimator/lredis/badge.svg?branch=master\u0026service=github)](https://coveralls.io/github/daurnimator/lredis?branch=master)\n\n\n# Installation\n\nIt's recommended to install lredis by using [luarocks](https://luarocks.org/).\nThis will automatically install run-time lua dependencies for you.\n\n    $ luarocks install --server=http://luarocks.org/dev lredis\n\n## Dependencies\n\n  - [cqueues](http://25thandclement.com/~william/projects/cqueues.html) \u003e= 20150907\n  - [fifo](https://github.com/daurnimator/fifo.lua)\n\n### For running tests\n\n  - [luacheck](https://github.com/mpeterv/luacheck)\n  - [busted](http://olivinelabs.com/busted/)\n  - [luacov](https://keplerproject.github.io/luacov/)\n\n\n# Development\n\n## Getting started\n\n  - Clone the repo:\n    ```\n    $ git clone https://github.com/daurnimator/lredis.git\n    $ cd lredis\n    ```\n\n  - Install dependencies\n    ```\n    $ luarocks install --only-deps lredis-scm-0.rockspec\n    ```\n\n  - Lint the code (check for common programming errors)\n    ```\n    $ luacheck .\n    ```\n\n  - Run tests and view coverage report ([install tools first](#for-running-tests))\n    ```\n    $ busted -c\n    $ luacov \u0026\u0026 less luacov.report.out\n    ```\n\n  - Install your local copy:\n    ```\n    $ luarocks make lredis-scm-0.rockspec\n    ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaurnimator%2Flredis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaurnimator%2Flredis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaurnimator%2Flredis/lists"}