Welcome! Log In Create A New Profile

Advanced

Re: Improved memcached module

August 21, 2009 05:40AM
On Fri, Aug 21, 2009 at 12:47:24PM +0400, Maxim Dounin wrote:

> Hello!
>
> On Fri, Aug 21, 2009 at 10:06:00AM +0200, Spil Games wrote:
>
> > Hi,
> >
> > Attached is a patch which allows both custom headers and custom response
> > codes to be stored in memcached and returned by the memcached module.
> > The Nginx 0.6 version of this patch has been in production on a heavily
> > loaded site (100M unique visitors per month) for over a year with no
> > problems whatsoever. The original thread on this can be found here:
> >
> > http://www.ruby-forum.com/topic/160379#724717
> >
> > I think it would be a valuable addition to Nginx to include this in the
> > main distribution, but I'll leave this up to Igor. The patch may be a
> > bit too hacky for his taste.
> >
> > Feedback appreciated!
> >
> > Attachments:
> > http://www.ruby-forum.com/attachment/3956/nginx-0.7.61-memcache.final.patch
>
> There are at least 2 problems with this patch I see:
>
> 1. It relies on 'HTTP/' prefix on to find out if key in question
> has headers. This is bad, as there is no way to return text
> starting from this string. IMHO it should be changed to use flags
> instead.

I agree, it should use a flag and the flag should not conflict with two
perl Cache-Memcached module's flags:
F_STORABLE 0x0001
F_COMPRESS 0x0002


--
Igor Sysoev
http://sysoev.ru/en/
Subject Author Posted

Improved memcached module

Spil Games August 21, 2009 04:06AM

Re: Improved memcached module

Igor Sysoev August 21, 2009 04:40AM

Re: Improved memcached module

Spil Games August 21, 2009 04:59AM

Re: Improved memcached module

Maxim Dounin August 21, 2009 04:47AM

Re: Improved memcached module

Spil Games August 21, 2009 05:04AM

Re: Improved memcached module

Maxim Dounin August 21, 2009 06:06AM

Re: Improved memcached module

Igor Sysoev August 21, 2009 05:40AM

Re: Improved memcached module

Maxim Dounin August 21, 2009 06:21AM

Re: Improved memcached module

Igor Sysoev August 21, 2009 06:57AM

Re: Improved memcached module

Spil Games August 21, 2009 07:04AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 176
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready