}
BEGIN {
- for my $cmd (qw/multi exec smembers get hget hdel hset sadd srem incr hmset hsetnx/) {
+ for my $cmd (qw/multi exec smembers get hget hdel hset sadd srem incr hmset hsetnx publish/) {
dynsub uc $cmd, sub { say "Arguments to \U$cmd: ", join ', ', @_; $redis->$cmd(@_) };
}
- for my $cmd (qw/publish subscribe wait_for_messages/) {
+ for my $cmd (qw/subscribe wait_for_messages/) {
dynsub uc $cmd, sub { say "Arguments to \U$cmd: ", join ', ', @_; $pubsub->$cmd(@_) };
}
}