Skip to content

Instantly share code, notes, and snippets.

@gjuric
Created Nov 21, 2013
Embed
What would you like to do?
nginx memcache keepalive
# Ovo mora biti izvan server bloka
upstream memcached_backend {
server 127.0.0.1:11211;
keepalive 50;
}
# unutar server bloka
location /widget/ {
....
# umjesto "memcached_pass 127.0.0.1:11211;"
memcached_pass memcached_backend;
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment