How can I best prevent against the following error? Can I check the
length of items before putting them in the memcache?
File "/base/python_lib/versions/1/google/appengine/api/memcache/
__init__.py", line 635, 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 180, 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 1861357 bytes
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---