I would really like to be able to to : "set $memcached_key_sha1 $request_uri;" And the then module should lookup using the hashed key instead of "$memcached_key". I guess this would be a minute hack for anyone that has some knowledge of the inner working of nginx ;)