Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Perl6 Redis stuck when ask for output

Tags:

redis

raku

For some unknown reason (not even in Redis log), this piece of code will stuck forever... Please help..

use v6;
use Redis;

my $redis = Redis.new("127.0.0.1:6379");
$redis.auth("xxxxxxxxx");
$redis.set("key", "value");
say $redis.get("key");
say $redis.info();
$redis.quit();
like image 551
Zarul Zakuan Avatar asked Nov 27 '18 08:11

Zarul Zakuan


1 Answers

I wonder if the issue is because the Redis library is a bit old and there's been a few changes to the runtime in the intervening time.

Have you tried Redis::Async? It seems more up to date.

like image 89
Scimon Proctor Avatar answered Nov 10 '22 00:11

Scimon Proctor