Skip to content

Commit 0f8df14

Browse files
committed
allow to access the multi_command_max_wait option in the libshardcache client library
1 parent 2d88d85 commit 0f8df14

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed

perl/p5-Shardcache-Client-Fast/Changes

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
Revision history for Perl extension Shardcache::Client::Fast.
22

3+
0.12 Fri Jun 20 13:23:59 CEST 2014
4+
- introduced the multi_command_max_wait() method to allow
5+
setting the shardcache_client option with the same name
6+
and determining the timeout to use for get_multi/set_multi
7+
commands if no data is being received
8+
39
0.11 Tue Jun 17 23:27:09 CEST 2014
410
- error handling in the get_async callback
511

perl/p5-Shardcache-Client-Fast/Fast.xs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,11 @@ shardcache_client_tcp_timeout(c, new_value)
132132
shardcache_client_t * c
133133
int new_value
134134

135+
int
136+
shardcache_client_multi_command_max_wait(c, new_value)
137+
shardcache_client_t * c
138+
int new_value
139+
135140
int
136141
shardcache_client_use_random_node(c, new_value)
137142
shardcache_client_t * c

perl/p5-Shardcache-Client-Fast/lib/Shardcache/Client/Fast.pm

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ our %EXPORT_TAGS = ( 'all' => [ qw(
3434
shardcache_client_errno
3535
shardcache_client_errstr
3636
shardcache_client_tcp_timeout
37+
shardcache_client_multi_command_max_wait
3738
shardcache_client_use_random_node
3839
shardcache_client_pipeline_max
3940
) ] );
@@ -44,7 +45,7 @@ our @EXPORT = qw(
4445
4546
);
4647

47-
our $VERSION = '0.11';
48+
our $VERSION = '0.12';
4849

4950
sub AUTOLOAD {
5051
# This AUTOLOAD is used to 'autoload' constants from the constant()
@@ -131,6 +132,11 @@ sub tcp_timeout {
131132
return shardcache_client_tcp_timeout($self->{_client}, $new_value);
132133
}
133134

135+
sub multi_command_max_wait {
136+
my ($self, $new_value) = @_;
137+
return shardcache_client_multi_command_max_wait($self->{_client}, $new_value);
138+
}
139+
134140
sub use_random_node {
135141
my ($self, $new_value) = @_;
136142
return shardcache_client_use_random_node($self->{_client}, $new_value);

0 commit comments

Comments
 (0)