1
votes

I have categories with (infinite possible levels but will definitely be kept under a 1000) and I'm wondering what is the limit to the memcache in the following instance (generally when caching on a single key):

all_categories = Categories.all().fetch(1000)
memcache.set('categories', serialize_entities(all_categories))

Thanks for any suggestions.

1

1 Answers

1
votes

From Limits:

Maximum size of a cached value: 1 megabyte

So, if all_categories is less than 1 megabyte in size, you'll fit within the limit.