Just a heads up, in case you get bit by this like we did:

It seems that there is an undocumented size cap of 1 MB on memcache
entries. Our application caches a list of entities with a thumbnail
BlobProperty, and we weren't putting memcache.set() in a try/catch
block. It turns out, that it stopped working after a while, with the
following error in the logs:

"""
  File "/base/python_lib/versions/1/google/appengine/api/memcache/
__init__.py", line 539, in set
    return self._set_with_policy(MemcacheSetRequest.SET, key, value,
time=time)
  File "/base/python_lib/versions/1/google/appengine/api/memcache/
__init__.py", line 602, in _set_with_policy
    stored_value, flags = _validate_encode_value(value,
self._do_pickle)
  File "/base/python_lib/versions/1/google/appengine/api/memcache/
__init__.py", line 176, in _validate_encode_value
    'received %d bytes' % (MAX_VALUE_SIZE, len(stored_value)))
ValueError: Values may not be more than 1000000 bytes in length;
received 1000685 bytes
"""

I guess we'll have to make those thumbnails into ReferenceProperties,
put them in their own entities and memcache them separately.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to