Forum: NGINX how to config nginx-memcached?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
20a2c31432134169f1ffe3d42dabfdc1?d=identicon&s=25 yi.dong@yamutech.com (Guest)
on 2009-04-02 04:43
(Received via mailing list)
hi all:

     I would like to serve a application , there comes a request with an
arguement ,then nginx use this argument as the memcache_key . if hit
,return the value to client directly, if not hit, rewrite the request to
my backend server(python + django) and with the arguement

it likes:

first:   http://myserver:7214/cache/?XXX

          hit:  return memcached value with key XXX

         not hit:  rewrite the request like :
             http://myserver:7214/gen/?XXX     and use proxy_pass to
http://127.0.0.1:1234

I am working on it for serveral days and can't work it out ,
thanks a lot
This topic is locked and can not be replied to.