forked from cofyc/perl6-redis
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
124 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
dump.rdb | ||
.precomp | ||
/Redis-* | ||
*.rakucov |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
Revision history for Redis | ||
|
||
{{$NEXT}} | ||
- Fix srem, bduggan++ | ||
- Some code modernization / efficiency fixes | ||
- Move documentation to separate file | ||
- Add coverage tests | ||
- Update copyright year | ||
|
||
0.1.2 2024-08-10T16:46:56+02:00 | ||
- Initial version as a Raku Community Module |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
name = Redis | ||
|
||
[ReadmeFromPod] | ||
filename = lib/Redis.rakumod | ||
filename = doc/Redis.rakudoc | ||
|
||
[UploadToZef] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
=begin pod | ||
|
||
=head1 NAME | ||
|
||
Redis - a Raku binding for Redis | ||
|
||
=head1 SYNOPSIS | ||
|
||
=begin code :lang<raku> | ||
|
||
use Redis; | ||
|
||
my $redis = Redis.new("127.0.0.1:6379"); | ||
$redis.set("key", "value"); | ||
say $redis.get("key"); | ||
say $redis.info; | ||
$redis.quit; | ||
|
||
=end code | ||
|
||
=head1 DESCRIPTION | ||
|
||
Redis provides a Raku interface to the | ||
L<Redis|https://en.wikipedia.org/wiki/Redis> server. | ||
|
||
=head1 METHODS | ||
|
||
=head2 new | ||
|
||
=begin code :lang<raku> | ||
|
||
method new(Str $server?, Str :$encoding?, Bool :$decode_response?) | ||
|
||
=end code | ||
|
||
Returns the redis object. | ||
|
||
=head2 exec_command | ||
|
||
=begin code :lang<raku> | ||
|
||
method exec_command(Str $command, *@args) returns Any | ||
|
||
=end code | ||
|
||
Executes arbitrary command. | ||
|
||
=head1 AUTHORs | ||
|
||
=item Yecheng Fu | ||
=item Raku Community | ||
|
||
=head1 COPYRIGHT AND LICENSE | ||
|
||
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. | ||
|
||
=end pod | ||
|
||
# vim: expandtab shiftwidth=4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
use Test::Coverage; | ||
|
||
plan 2; | ||
|
||
coverage-at-least 87; | ||
|
||
uncovered-at-most 50; | ||
|
||
report; | ||
|
||
source-with-coverage; | ||
|
||
# vim: expandtab shiftwidth=4 |