Skip to content

Instantly share code, notes, and snippets.

@co-dh
Created September 23, 2013 15:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save co-dh/6672534 to your computer and use it in GitHub Desktop.
Save co-dh/6672534 to your computer and use it in GitHub Desktop.
uwsgi remote cache bug
uwsgi --http :9090 --wsgi-file srv1.py --cache2 "name=users,items=5000,blocksize=4096,keysize=64,bitmap=1" --socket :3032
srv1.py
from uwsgi import *
cache_update('hello', 'world', 0, 'users')
# this line is not working,
v = cache_get('hello', 'users@localhost:3032')
# this line works.
v = cache_get('hello', 'users')
print v
def application(env, start_response):
start_response('200 OK', [('Content-Type','text/html')])
return "Hello World"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment