Git Product home page Git Product logo

net-async-redis's People

Contributors

d-marcfrank avatar eyadof avatar leonerd avatar manwar avatar michaelmueller-binary avatar shaydo-deriv avatar tm604 avatar tom-binary avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

net-async-redis's Issues

Payload incorrect for `psubscribe` messages

Due to different wire format for psubscribe payloads as compared regular subscribe ones, the "payload" field of the message actually contains the channel name, rather than the payload.

Dependency on Math::Random::Secure not declared

The compile test may fail if Math::Random::Secure is not installed:

#   Failed test 'Net/Async/Redis/Server/Database.pm loaded ok'
#   at t/00-compile.t line 51.
#          got: '512'
#     expected: '0'
Can't locate Math/Random/Secure.pm in @INC (you may need to install the Math::Random::Secure module) (@INC contains: ... .) at /tmpfs/.cpan-build-cpansand/2017122609/Net-Async-Redis-1.003-0/blib/lib/Net/Async/Redis/Server/Database.pm line 19.
BEGIN failed--compilation aborted at /tmpfs/.cpan-build-cpansand/2017122609/Net-Async-Redis-1.003-0/blib/lib/Net/Async/Redis/Server/Database.pm line 19.
Compilation failed in require at -e line 1.
# Looks like you failed 1 test of 9.
t/00-compile.t ......... 
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/9 subtests 

Implement `configure` parameters

The connect method takes host, port and auth parameters directly (though doesn't document them). It would be convenient to take them as configured parameters for more traditional constructor or configure use-cases.

Can't authenticate with Cloud Providers like Aiven.io

When trying to use a Redis Cloud provider like Aiven.io, I'm not able to authenticate with the following example due to mutations to the URI. Please note that Aiven.io requires and extra "s" for the "rediss://" start of the URI.

When tracing out the URI of "rediss://username:[email protected]:16031" was changed to "redis://rediss:6379//username:[email protected]:16031"

Also, the authentication parameters also have the username removed before trying to authenticate. This makes using ACL authentication not possible.

Example Code:

use warnings;
use Future::AsyncAwait;
use IO::Async::Loop;
use Net::Async::Redis;

my $redis = Net::Async::Redis->new(
        uri => 'rediss://username:[email protected]:16031'
);

$loop->add($redis);
$redis->connect()->then(sub {
    print("#connected! \n");
})->on_fail(sub {
    my $error = shift;
    print("Redis connection error : $error \n");
})->get;

Using a URI without `redis://...` fails

If the URI does not have the redis://... scheme, then code later fails:

Can't locate object method "userinfo" via package "URI::_generic" at .../lib/perl5/Net/Async/Redis.pm line 250.

A quite simple fix for this is something like

$uri = "redis://$uri" unless $uri =~ m{^redis://};

Or maybe have the URI checked/rejected by the configure method?

Pipelined commands not RESP encoded

It appears there issue with how the pipelined commands are handled here

The $cmd variable is just a space joined version of the arguments, and not the RESP encoded version. Therefore, when the command is retrieved here, the Redis server rejects them because they are not encoded in RESP.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.