Error handling in Cache::Memcached

Brad Fitzpatrick brad at danga.com
Mon Aug 21 04:14:10 UTC 2006


Sorry, back from wedding + honeymoon + travel hell + calming down.

But yeah, I'd take such a patch, if it were off by default.  (no surprises
for existing users)  Or a sort of $memc->last_err might be more likable
based on the other replies I saw.  Not sure what the return values would
be... constants like ERR_CACHE_MISS / ERR_NO_SERVER ?

Either way, or both.  Get me a patch and I'll get it in the next release.

Thanks!
Brad


On Wed, 12 Jul 2006, George Schlossnagle wrote:

> Hello,
>
> I was implementing a small performance testing harness around the perl
> client Cache::Memcached.  It seems like there is no way to distinguish a
> cache miss from a 'I couldn't find a server to talk to'.  Is this
> intentional?  Would a patch supporting 'die() on non-recoverable
> connection errors' be looked on kindly?
>
> Best,
>
> George
>


More information about the memcached mailing list