google-code-export / appengine-devappserver2-experiment

Automatically exported from code.google.com/p/appengine-devappserver2-experiment
0 stars 0 forks source link

Namespace support for memcache #61

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Enable namespacing and store some data.
2. Use memcache to cache 
3. You can view the datastore entities by entering the namesapce, but though 
there is a text field for key in the memcache viewer, trying different 
combination with namespace + key doesn't show the items in cache.

What is the expected output? What do you see instead?
View the cache items

What version of the product are you using? On what operating system?
1.7.6 go runtime

Please provide any additional information below.

Please refer to 
http://stackoverflow.com/questions/15606339/view-memcache-items-in-gae#15606339

Trying to view items in memcache in GAE.

https://code.google.com/p/googleappengine/issues/detail?id=7245 
http://googleappengine.blogspot.com/2012/08/app-engine-171-released.html

These links say "Namespaces in the Memcache Viewer - The Admin Console now 
supports retrieving memcache values that are stored in a non-default namespace."

But I still couldn't the view item trying different combinations.

tried, ns.key, ns_key, key (where ns is namespace, key is key set in the 
program). I use Development SDK 1.7.6, with GO runtime. What should I enter it 
in the search space as seen in the picture, or what is the best way?

Accepted answer by proppy

This is not currently implemented in the development server (but is available 
in the production admin console as pointer by Jesse in the comment).

You should open a new feature request in dev_appserver2 projects.

If you feel like contributing it yourself, you could easily add support by 
patching:

memcache_viewer.html to add a new <input> field to capture the namespace.
memcache_viewer.py to add namespace arg to memcache.get call

Original issue reported on code.google.com by bsr...@gmail.com on 26 Mar 2013 at 12:14