[Redis] Redis client: Timeouts !

Damien Krotkine damien at krotkine.com
Sat Dec 28 22:06:08 GMT 2013



On Fri, Dec 27, 2013, at 10:14 AM, Damien Krotkine wrote:
> 
> 
> On Fri, Dec 27, 2013, at 08:02 AM, Steffen Mueller wrote:
> > On 12/27/2013 10:23 AM, Damien Krotkine wrote:
> > >
> > > Ithere is a better way, I'd be happy to change the implementation.
> > 
> > FWIW, I would take an ugly interface over a cute, but subtle and/or
> > intrusive interface any day.
> 
> I'm thinking about other APIs.
> 
> 1/ Maybe something more role-esque, on the instance. Something like
> my $socket = IO::Socket::Timeout->on(IO::Socket::INET->new(Timeout =>

I've changed the API of IO::Socket::Timeout by choosing this style of
API (the class method is called enable_timeouts_on()  ) and Redis.pm
accordingly. Let me know of any bug you find

dams.



More information about the Redis mailing list