{"id":16934587,"url":"https://github.com/shogo82148/p5-redis-script","last_synced_at":"2026-05-19T02:46:15.066Z","repository":{"id":5718097,"uuid":"51362159","full_name":"shogo82148/p5-Redis-Script","owner":"shogo82148","description":null,"archived":false,"fork":false,"pushed_at":"2023-09-05T06:11:59.000Z","size":41,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-15T21:17:23.860Z","etag":null,"topics":["perl","perl5","redis"],"latest_commit_sha":null,"homepage":null,"language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shogo82148.png","metadata":{"files":{"readme":"README.md","changelog":"Changes","contributing":null,"funding":null,"license":"LICENSE","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-02-09T11:14:08.000Z","updated_at":"2023-01-24T13:40:46.000Z","dependencies_parsed_at":"2024-11-26T11:53:14.446Z","dependency_job_id":null,"html_url":"https://github.com/shogo82148/p5-Redis-Script","commit_stats":{"total_commits":27,"total_committers":1,"mean_commits":27.0,"dds":0.0,"last_synced_commit":"5df02528c98ac34eaa321c9131bb0cd053b8eb25"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shogo82148%2Fp5-Redis-Script","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shogo82148%2Fp5-Redis-Script/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shogo82148%2Fp5-Redis-Script/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shogo82148%2Fp5-Redis-Script/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shogo82148","download_url":"https://codeload.github.com/shogo82148/p5-Redis-Script/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244734483,"owners_count":20501079,"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":["perl","perl5","redis"],"created_at":"2024-10-13T20:52:31.069Z","updated_at":"2026-05-19T02:46:15.014Z","avatar_url":"https://github.com/shogo82148.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Actions Status](https://github.com/shogo82148/p5-Redis-Script/actions/workflows/test.yml/badge.svg)](https://github.com/shogo82148/p5-Redis-Script/actions) [![MetaCPAN Release](https://badge.fury.io/pl/Redis-Script.svg)](https://metacpan.org/release/Redis-Script)\n# NAME\n\nRedis::Script - wrapper class for Redis' script\n\n# SYNOPSIS\n\n    # OO-interface\n    use Redis;\n    use Redis::Script;\n    my $script = Redis::Script-\u003enew(script =\u003e \"return {KEYS[1],KEYS[2],ARGV[1],ARGV[2]}\");\n    my ($key1, $key2, $arg1, $arg2) = $script-\u003eeval(Redis-\u003enew, ['key1', 'key2'], ['arg1', 'arg2']);\n    \n    # Functional\n    use Redis::Script qw/redis_eval/;\n    my ($key1, $key2, $arg1, $arg2) = redis_eval(Redis-\u003enew, \"return {KEYS[1],KEYS[2],ARGV[1],ARGV[2]}\", ['key1', 'key2'], ['arg1', 'arg2']);\n\n# DESCRIPTION\n\nRedis::Script is wrapper class for Redis' script.\n\n# FUNCTIONS\n\n## `$script-\u003eeval($redis:Redis, $keys:ArrayRef, $args:ArrayRef)`\n\n`eval` executes the script by `EVALSHA` command.\nIf `EVALSHA` reports \"No matching script\", use `EVAL` instead of `EVALSHA`.\nRedis will cache the script of `EVAL` command, so `EVALSHA` will succeed next time.\n\nIf `use_evalsha` option is false, `eval` does not use `EVALSHA` command.\n\n## `$script-\u003eexists($redis:Redis)`\n\n`exists` reports if `$redis` caches the script.\n\n## `$script-\u003eload($redis:Redis)`\n\nLoad a script into the scripts cache, without executing it.\n\n# SEE ALSO\n\n- [Redis.pm](https://metacpan.org/pod/Redis)\n- [Redis::Fast](https://metacpan.org/pod/Redis::Fast)\n- [Description of EVAL](http://redis.io/commands/eval#bandwidth-and-evalsha)\n\n# LICENSE\n\nCopyright (C) ICHINOSE Shogo.\n\nThis library is free software; you can redistribute it and/or modify\nit under the same terms as Perl itself.\n\n# AUTHOR\n\nICHINOSE Shogo \u003cshogo82148@gmail.com\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshogo82148%2Fp5-redis-script","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshogo82148%2Fp5-redis-script","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshogo82148%2Fp5-redis-script/lists"}