Skip to content

Instantly share code, notes, and snippets.

@co-dh co-dh/gist:6672534
Created Sep 23, 2013

Embed
What would you like to do?
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
You can’t perform that action at this time.