How to return all memcached values ​​in Google App Engine?

I want to use all the data in my memcache for the python application engine. I do not know the keys in advance.

How do I get all the data?

+4
source share
3 answers

Only read functions available in memcache are as follows:

get(key, namespace=None) get_multi(keys, key_prefix='', namespace=None) 

As you can see, to receive data from memcache you must provide one or more keys.

+4
source

I use a "well-known key" called "config", where I keep a list of all the other keys and use it to list the rest of the elements.

+1
source

as in the comments above, I think that I could store all the data in one memcache entry using a known key.

However, for non-static data, there are scenarios where this would be useful.

0
source

All Articles