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
1 parent
8fc29e8
commit d42f004
Showing
2 changed files
with
54 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
use v6; | ||
|
||
use Redis::Async; | ||
use Redis::Objects; | ||
|
||
my $redis = Redis::Async.new; | ||
|
||
my $set = Redis::Set.new(:$redis, key => 'myset'); | ||
|
||
$set.push(^10); | ||
|
||
say $set.keys; | ||
|
||
say $set.elems; | ||
|
||
say $set.values; | ||
|
||
say $set.pick; | ||
|
||
say $set.roll(10); | ||
|
||
say $set.kv; | ||
|
||
say $set.grab for ^3; | ||
|
||
say $set.keys; | ||
|
||
say 3 ∈ $set ?? "3 is a member" !! "3 is not a member"; |
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