{"id":21606021,"url":"https://github.com/codekitchen/redis-rb-scripting","last_synced_at":"2025-07-31T17:04:53.495Z","repository":{"id":10438172,"uuid":"12603651","full_name":"codekitchen/redis-rb-scripting","owner":"codekitchen","description":"utilities for redis-rb to facilitate lua scripting","archived":false,"fork":false,"pushed_at":"2013-12-17T16:10:54.000Z","size":124,"stargazers_count":9,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-22T23:13:47.662Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/codekitchen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-09-04T22:35:18.000Z","updated_at":"2022-10-14T17:08:53.000Z","dependencies_parsed_at":"2022-07-30T11:18:06.458Z","dependency_job_id":null,"html_url":"https://github.com/codekitchen/redis-rb-scripting","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/codekitchen/redis-rb-scripting","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codekitchen%2Fredis-rb-scripting","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codekitchen%2Fredis-rb-scripting/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codekitchen%2Fredis-rb-scripting/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codekitchen%2Fredis-rb-scripting/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codekitchen","download_url":"https://codeload.github.com/codekitchen/redis-rb-scripting/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codekitchen%2Fredis-rb-scripting/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267516648,"owners_count":24100364,"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","status":"online","status_checked_at":"2025-07-28T02:00:09.689Z","response_time":68,"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":[],"created_at":"2024-11-24T20:18:35.806Z","updated_at":"2025-07-31T17:04:53.449Z","avatar_url":"https://github.com/codekitchen.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Redis::Scripting\n\nUtilities built on redis-rb for using Redis Lua scripting.\n\n[![Build Status](https://travis-ci.org/codekitchen/redis-rb-scripting.png?branch=master)](https://travis-ci.org/codekitchen/redis-rb-scripting)\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n    gem 'redis-scripting'\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install redis-scripting\n\n## Usage\n\nGiven a directory of lua scripts, you can create an object to run those\nscripts with:\n\n    \u003e redis = Redis.new()\n    \u003e scripts = Redis::Scripting::Module.new(redis, \"/path/to/myscripts\")\n\nThen you can run a script \"do_work.lua\" with:\n\n    \u003e scripts.run(:do_work, [keys], [argv])\n\nSee http://redis.io/commands/eval for details on the keys and argv\nparams, along with more details on lua in redis. To save bandwidth this\nwill use evalsha to run the script, and fallback to eval if the script\nis not yet loaded in redis.\n\nIf your scripts directory \"myscripts\" has a \"myscripts/includes\"\nsubdirectory, any .lua files in that subdirectory will be prepended to\nevery .lua script in \"myscripts\" as a primitive form of extracting\nlibrary code. For instance if your folder structure is:\n\n    - myscripts/\n      - script1.lua\n      - script2.lua\n      - includes/\n        - common.lua\n        - more.lua\n\nThen script1 and script2 will automatically have common.lua and then\nmore.lua prepended to it.\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodekitchen%2Fredis-rb-scripting","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodekitchen%2Fredis-rb-scripting","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodekitchen%2Fredis-rb-scripting/lists"}