Hello,
I think the best thing to do is to contact the author:
http://www.rot13.org/~dpavlin/
I'm not sure he is subscribed to this list.
Cheers,
Salvatore
--
Salvatore 'antirez' Sanfilippo
http://invece.org
"Once you have something that grows faster than education grows,
you’re always going to get a pop culture.", Alan Kay
Upstream repository is http://svn.rot13.org/index.cgi/Redis/
> On Sep 11, 10:36 am, "Jer...@Zawodny.com" <jzaw...@gmail.com> wrote:
> > Excellent... Ideally you'd allow one to pass arguments to the
> > constructor too...
> >
> > my $r = Redis->new(host => 'foo', port => 54321);
Hmmm... I would prefer something like
my $r = Redis->new( server => 'localhost:6379', debug => 1 );
which would enable environment variables to be REDIS_SERVER and
REDIS_DEBUG.
It seems to me that having two parameters is a bit too verbose, and
could introduce errors in configuration (e.g. what happens if you specify
just host? Should it use default port?). Does that make sense?
This would also change behavior of Redis.pm which now always re-use
single connection to server, but that is good thing for concurrency so
I'm all for it :-)
Hack, I even implemented it while writing this e-mail...
Version 0.0801 is in my svn repository and if there isn't any
objections to new API I will also push it to CPAN so documentation
won't lie any more about pointers to bug tracker...
--
Dobrica Pavlinusic 2share!2flame dpa...@rot13.org
I really like Data::Dump output, but not so much to introduce non-core
dependency just for debugging... I replaced it with Data::Dumper.
I also created fork on github of redis in which I commit
revision-by-revision my changes to subversion so github users can take
advantage of changes. I also sent pull request to Salvatore so it should
appear on github soon, I hope.