Created
September 23, 2013 15:47
-
-
Save co-dh/6672534 to your computer and use it in GitHub Desktop.
uwsgi remote cache bug
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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