{"id":19839396,"url":"https://github.com/redislabs/luascript","last_synced_at":"2025-05-01T19:30:19.621Z","repository":{"id":141980560,"uuid":"52975711","full_name":"RedisLabs/luascript","owner":"RedisLabs","description":"Easy Lua Handling","archived":false,"fork":false,"pushed_at":"2016-03-02T16:32:37.000Z","size":5,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-04-06T17:04:39.074Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RedisLabs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-03-02T15:55:24.000Z","updated_at":"2018-11-19T03:51:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"53454c46-13bf-4519-92da-b33a78a8ff80","html_url":"https://github.com/RedisLabs/luascript","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/RedisLabs%2Fluascript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedisLabs%2Fluascript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedisLabs%2Fluascript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedisLabs%2Fluascript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RedisLabs","download_url":"https://codeload.github.com/RedisLabs/luascript/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251932514,"owners_count":21667157,"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-11-12T12:22:12.794Z","updated_at":"2025-05-01T19:30:19.607Z","avatar_url":"https://github.com/RedisLabs.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LuaScript - easily run Lua Redis scripts with Jedis\n\nThis library provides a nicer interface to handling Lua scripts with Jedis.\n\nThe idea is simple - instead of loading the script to redis, managing SHAs etc - just wrap it in a LuaScript object.\n\nScripts can be raw lua code, or loaded from project resources.\n\nScripts can then be called with or without arguments.\n \n## Usage example\n\n```java\nimport com.redislabs.luascript.LuaScript;\n\n// loading a script from resource, and caching it on a redis server\nLuaScript s = LuaScript.fromResource(\"lua/simple.lua\", \"redis://localhost:6379\");\n\n// now calling it is done simply with\nObject o = s.execute();\n```\n\n### Scripts with arguments can be called like so:\n\n```java\n// the first argument is the number of keys in the variadic argument list\ns.execute(1, key, value1, value2);\n\n// or with lists of strings and keys\ns.execute(keys, args);\n```\n\n### Scripts can also be used with pipelines or existing Jedis objects:\n\n```java\nJedis conn = new Jedis(...);\n\ns.execute(conn);\n\nPipeline pipe = conn.pipelined();\n\n// note that executing on pipelines does not sync the pipeline\ns.execute(pipe);\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredislabs%2Fluascript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredislabs%2Fluascript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredislabs%2Fluascript/lists"}