how can i use memcached_module

焦胜强 jiaosq at mail.51.com
Sun May 6 22:11:58 MSD 2007


HI:
    how can use the memcached_module in php?
    can someone give a example?
I can not understand this configfile:
...
        upstream   backend {
            server   localhost:80;
        }
...
        location /memcached/ {
            internal;
            ssi on;
            set     $memuri $uri;
            set     $memcached_key   "$memuri";
            memcached_pass  localhost:10000;
            error_page 404 =200 /memcached-miss$memuri;
        }
...
        location /memcached-miss/ {
            internal;
            ssi on;
            rewrite   ^/memcached-miss/(.*)$  /$1 break;
            proxy_set_header    Host             $host;
            proxy_set_header    X-Real-IP        $remote_addr;
            proxy_pass          http://backend;
            proxy_redirect      off;
        }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20070507/b5963992/attachment.html>


More information about the nginx mailing list