Skip to content

dctrwatson/nginx-memcached-hash-pass

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Nginx Memcached Hash Pass
=========================

Hash the key using SHA256 to ensure that it does not grow beyond the 
key length limit of memcached.


Configuration
-------------

Functionally equivalent to memcached_pass.

::
    set $memcached_hash_key $request_uri
    memcached_hash_pass 127.0.0.1:11211;

To serve gzipped content, set memcached_hash_gzip_flag to the decimal 
bit mask that your memcached client uses to signal a compressed value.

::
    memcached_hash_gzip_flag 2;

About

Hash the key using SHA256 to ensure it's less than the max key length

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published