Question about memcache

António P. P. Almeida appa at perusio.net
Thu Apr 21 22:55:18 MSD 2011


On 21 Abr 2011 19h32 WEST, lists at ruby-forum.com wrote:

> Hello,
> I am trying to add memcache module in Nginx.
>
> Following http://wiki.nginx.org/NginxHttpMemcachedModule
> http://lserinol.blogspot.com/2009/03/speeding-up-your-nginx-server-with.html
>
> In Levent's blog, in the end, he mentioned
>
> "Nginx's memcache module never put anything automatically in
> memcached.  You have to store your information in it manually by
> using something like a script. Considering our example, if we forget
> to store information about a file in memcached, it will be always
> served by back-end Apache servers. Here is a simple php script,
> which finds given image types and deploy it into memcached for
> Nginx. "
>
> I want to know whether it is still valid? Since the blog is one year
> ago. Maybe Nginx improve memcache module in the middle.

AFAIK it' still the case: the nginx memcache official module is a
write only thing. you can however use agentzh's memc module that
supports also writing and more:

https://github.com/agentzh/memc-nginx-module

http://wiki.nginx.org/HttpMemcModule

> For dynamically generate webpage on the backend server (query mysql
> database), I do not have static files. So how can I use memcache to
> record dynamically created webpage in front server? (Nginx frontend
> server is running in 192.168.2.1, and backend server running in
> 192.168.2.2)

See above.

--- appa



More information about the nginx mailing list