<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#ffffff" text="#000000">
hi all:<br>
<br>
&nbsp;&nbsp;&nbsp; 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<big> with the arguement</big>
<br>
<br>
it likes:<br>
<br>
first:&nbsp;&nbsp; <a class="moz-txt-link-freetext" href="http://myserver:7214/cache/?XXX">http://myserver:7214/cache/?XXX</a><br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; hit:&nbsp; return memcached value with key XXX<br>
<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; not hit:&nbsp; rewrite the request like :<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <a class="moz-txt-link-freetext" href="http://myserver:7214/gen/?XXX">http://myserver:7214/gen/?XXX</a>&nbsp;&nbsp;&nbsp;&nbsp; and use proxy_pass to
<a class="moz-txt-link-freetext" href="http://127.0.0.1:1234">http://127.0.0.1:1234</a><br>
<br>
I am working on it for serveral days and can't work it out , <br>
thanks a lot<br>
</body>
</html>