Cannot get memcache value in memcache viewer

I am setting up the cache correctly since my project is extracting the correct result from it. I want to view it in the memcache dev> view (http: // localhost: 8080 / _ah / amdin / memcache) But when I insert the key, it says "there is no such key." I am using the memcache statement:

stuff=memcache.get(userid, namespace='book')

Therefore, when I use userid (aka key) in the memcache viewer, it fails. Can I somehow add a namespace? I tried and it failed. I also tried the entity key, it was a failure. any ideas?!?

+3
source share
1 answer

, memcache , memcache dev.

, :

. :

from google.appengine.api import memcache  
print memcache.get(youruserid, namespace='book')

. - (Webapp + memcache api),

+5

Source: https://habr.com/ru/post/1788719/


All Articles