6

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();
Zarul Zakuan
  • 510
  • 3
  • 13

1 Answers1

7

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.

Scimon Proctor
  • 4,558
  • 23
  • 22