{"id":13896697,"url":"https://github.com/moteus/lua-lluv-redis","last_synced_at":"2026-03-10T02:31:46.359Z","repository":{"id":28728310,"uuid":"32249500","full_name":"moteus/lua-lluv-redis","owner":"moteus","description":"Redis client for lua-lluv library","archived":false,"fork":false,"pushed_at":"2019-09-18T08:08:31.000Z","size":120,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-15T08:25:39.574Z","etag":null,"topics":["async","lua","redis"],"latest_commit_sha":null,"homepage":"","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/moteus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-15T07:24:23.000Z","updated_at":"2020-06-24T14:01:53.000Z","dependencies_parsed_at":"2022-09-05T00:11:04.753Z","dependency_job_id":null,"html_url":"https://github.com/moteus/lua-lluv-redis","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/moteus/lua-lluv-redis","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moteus%2Flua-lluv-redis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moteus%2Flua-lluv-redis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moteus%2Flua-lluv-redis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moteus%2Flua-lluv-redis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moteus","download_url":"https://codeload.github.com/moteus/lua-lluv-redis/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moteus%2Flua-lluv-redis/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30322645,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T01:36:58.598Z","status":"online","status_checked_at":"2026-03-10T02:00:06.579Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["async","lua","redis"],"created_at":"2024-08-06T18:03:05.770Z","updated_at":"2026-03-10T02:31:46.326Z","avatar_url":"https://github.com/moteus.png","language":"Lua","funding_links":[],"categories":["Lua"],"sub_categories":[],"readme":"# lua-lluv-redis\n[![Licence](http://img.shields.io/badge/Licence-MIT-brightgreen.svg)](LICENSE)\n[![Build Status](https://travis-ci.org/moteus/lua-lluv-redis.svg?branch=master)](https://travis-ci.org/moteus/lua-lluv-redis)\n[![Coverage Status](https://coveralls.io/repos/moteus/lua-lluv-redis/badge.svg)](https://coveralls.io/r/moteus/lua-lluv-redis)\n\n## Usage\n\n### lluv client\n```Lua\nlocal cli = redis.Connection.new()\ncli:open(function(cli)\n  cli:ping(print)\n  cli:quit(print)\nend)\n```\n\n### basic transaction\n```Lua\ncli:open(function()\n  cli:multi(function(cli, err, data) -- begin transaction\n    -- We can cat IO/redis error\n    -- if we get redis error that means application error\n    -- try nested transaction or transaction in SUBSCRIBE mode\n    -- so application shoul fix it.\n    assert(not err or err:cat() ~= 'REDIS')\n  end)\n\n  -- we can proceed each command in separate callback\n  cli:set(\"a\", \"10\", function(cli, err, data)\n    print(\"SET:\", data)\n  end)\n\n  cli:ping() --or we can ignore callback\n\n  cli:exec(function(cli, err, res)   -- end transaction\n    -- and proceed all results in transaction\n    for k, v in ipairs(res) do print(\"CMD #\" .. k, v) end\n  end)\n\n  cli:quit()\nend)\n```\n\n### pipeline\n```lua\n-- new pipeline\np = cli:pipeline()\n  :set(a, 10)\n  :set(b, 20)\n\n-- execute and preserve pipeline\np:execute(true)\n\n-- append command\np:set(c, 30)\n\n-- and execute it again\np:execute() -- execute and clear\n\np -- set new commands and execute\n  :set(a, 20)\n  :set(b, 30)\n  :execute()\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoteus%2Flua-lluv-redis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoteus%2Flua-lluv-redis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoteus%2Flua-lluv-redis/lists"}