{"id":16308793,"url":"https://github.com/dgl/protocol-redis-xs","last_synced_at":"2025-04-07T12:31:59.395Z","repository":{"id":45328059,"uuid":"1504001","full_name":"dgl/protocol-redis-xs","owner":"dgl","description":"hiredis based parser compatible with Protocol::Redis","archived":false,"fork":false,"pushed_at":"2024-09-03T02:40:43.000Z","size":246,"stargazers_count":8,"open_issues_count":1,"forks_count":5,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-04T14:41:15.957Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://search.cpan.org/dist/Protocol-Redis-XS","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/dgl.png","metadata":{"files":{"readme":"README","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}},"created_at":"2011-03-20T19:19:08.000Z","updated_at":"2024-09-03T02:40:47.000Z","dependencies_parsed_at":"2022-09-08T05:10:32.732Z","dependency_job_id":null,"html_url":"https://github.com/dgl/protocol-redis-xs","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dgl%2Fprotocol-redis-xs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dgl%2Fprotocol-redis-xs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dgl%2Fprotocol-redis-xs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dgl%2Fprotocol-redis-xs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dgl","download_url":"https://codeload.github.com/dgl/protocol-redis-xs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247653133,"owners_count":20973767,"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-10-10T21:18:44.178Z","updated_at":"2025-04-07T12:31:54.386Z","avatar_url":"https://github.com/dgl.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"NAME\n    Protocol::Redis::XS - hiredis based parser compatible with\n    Protocol::Redis\n\nSYNOPSIS\n      use Protocol::Redis::XS;\n      my $redis = Protocol::Redis::XS-\u003enew(api =\u003e 1);\n      $redis-\u003eparse(\"+OK\\r\\n\");\n      my $message = $redis-\u003eget_message;\n\n      # create message\n      print $redis-\u003eencode({type =\u003e '*', data =\u003e [\n        {type =\u003e '$', data =\u003e 'string'},\n        {type =\u003e '+', data =\u003e 'OK'},\n      ]});\n\nDESCRIPTION\n    This provides a fast parser for the Redis protocol using the code from\n    hiredis \u003chttps://github.com/redis/hiredis\u003e and with API compatibility\n    with Protocol::Redis.\n\n    (If you've found yourself here just looking to use Redis in Perl: This\n    is a low level parsing module, you probably want to look at the modules\n    mentioned in \"SEE ALSO\" first.)\n\nMETHODS\n    As per Protocol::Redis, API version 1.\n\n  parse\n      $redis-\u003eparse(\"*2\\r\\n$4ping\\r\\n\\r\\n\");\n\n    Parse a chunk of data (calls \"on_message\" callback if defined and a\n    complete message is received).\n\n  get_message\n      while (my $message = $redis-\u003eget_message) { ... }\n\n    Return a message. This is a potentially nested data structure, for\n    example as follows:\n\n      {\n        type =\u003e '*',\n        data =\u003e [\n          {\n            type =\u003e '$',\n            data =\u003e 'hello'\n          }\n        ]\n      }\n\n  on_message\n      $redis-\u003eon_message(sub { my ($redis, $message) = @_; ... });\n\n    Set callback for \"parse\".\n\n  encode\n      my $string = $redis-\u003eencode({type =\u003e '*', data =\u003e [\n        {type =\u003e '+', data =\u003e 'test'},\n        {type =\u003e '$', data =\u003e 'test'},\n      ]});\n\n    Encode data into redis message.\n\nTHREADS\n    This module will work on a threaded perl and will work with threads,\n    however instances of Protocol::Redis should not be shared between\n    threads.\n\nSUPPORT\n  IRC\n    #redis on irc.perl.org \u003circ://irc.perl.org/redis\u003e\n\nDEVELOPMENT\n    See github: \u003chttps://github.com/dgl/protocol-redis-xs\u003e.\n\nAUTHOR\n    David Leadbeater \u003cdgl@dgl.cx\u003e\n\n    With thanks to Sergey Zasenko \u003cundef@cpan.org\u003e for the original\n    Protocol::Redis and defining the API.\n\nCOPYRIGHT AND LICENSE\n    Copyright (C) 2011 David Leadbeater.\n\n    This program is free software; you can redistribute it and/or modify it\n    under the terms of either: the GNU General Public License as published\n    by the Free Software Foundation; or the Artistic License.\n\n    See http://dev.perl.org/licenses/ for more information.\n\nSEE ALSO\n    Redis, Redis::hiredis, Mojo::Redis, AnyEvent::Redis, Protocol::Redis.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdgl%2Fprotocol-redis-xs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdgl%2Fprotocol-redis-xs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdgl%2Fprotocol-redis-xs/lists"}