The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Net::Async::Redis::Protocol - simple implementation of the Redis wire protocol

DESCRIPTION

Used internally by Net::Async::Redis and Net::Async::Redis::Server.

encode

Given a Perl data structure, will return data suitable for sending back as a response as from a Redis server.

Note that this is not the correct format for client requests, see "encode_from_client" instead.

encode_from_client

Handles client format encoding. Expects a list of data items, and will convert them into length-prefixed bulk strings as a single response item.

decode

Decodes wire protocol data into Perl data structures.

Expects to be called with a reference to a byte string, and will extract as much as it can from that string (destructively).

Likely to call "item" or "item_error" zero or more times.

AUTHOR

Tom Molesworth <TEAM@cpan.org> plus contributors as mentioned in "CONTRIBUTORS" in Net::Async::Redis.

LICENSE

Copyright Tom Molesworth and others 2015-2021. Licensed under the same terms as Perl itself.