Redis - a Raku binding for Redis
use Redis;
my $redis = Redis.new("127.0.0.1:6379");
$redis.set("key", "value");
say $redis.get("key");
say $redis.info;
$redis.quit;
Redis provides a Raku interface to the Redis server.
method new(Str $server?, Str :$encoding?, Bool :$decode_response?)
Returns the redis object.
method exec_command(Str $command, *@args) returns Any
Executes arbitrary command.
-
Yecheng Fu
-
Raku Community
Copyright 2012 - 2018 Yecheng Fu
Copyright 2024, 2025 Raku Community
This library is free software; you can redistribute it and/or modify it under the Artistic License 2.0.