RedisDB::Error - Error class for RedisDB
sub callback { my ($redis, $reply) = @_; die "$reply" if ref $reply eq 'RedisDB::Error'; # do something with reply }
Object of this class maybe passed as argument to callback specified in send_command_cb if redis server return error. In string context object returns description of the error. This class inherits from RedisDB::Parser::Error.
RedisDB
Pavel Shaydo, <zwon at cpan.org>
<zwon at cpan.org>
Copyright 2011-2021 Pavel Shaydo.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install RedisDB, copy and paste the appropriate command in to your terminal.
cpanm
cpanm RedisDB
CPAN shell
perl -MCPAN -e shell install RedisDB
For more information on module installation, please visit the detailed CPAN module installation guide.