md5 as memcached_key

Xavier Grangier grangier at gmail.com
Tue Feb 3 18:10:21 MSK 2009


Hello,

Less efficient for sure but  you could use perl_set  $memcached and a  
simple perl script returning the md5 for a request_uri.

xav



Le 26 janv. 09 à 18:43, Geoff Geoff a écrit :

>
> Hello,
>
> Does anyone know if nginx can calculate the md5 of a $request_uri
> string?  I'd like to set the $memcached_key as the md5 of the
> request_uri when passing requests for cached content to my memcached
> instance.
>
> In concept the directive might look like this;
>
>  location /testing {
>  set $memcached_key $md5($request_uri);
>  memcached_pass localhost:11211;
>  }
>
> Thanks!
> -- 
> Posted via http://www.ruby-forum.com/.
>






More information about the nginx mailing list