Reputation: 87
How would one return all the values stored within the memcache? I have tried using entrySet() and values() methods on the cache but both result in an java.lang.UnsupportedOperationException.
Ideally, I need to return all the entities stored within the cache and bulk save them to the datastore - is this possible?
Thanks
Upvotes: 1
Views: 294
Reputation: 1500675
Given the MemcacheService
low-level documentation, I don't think it's possible to do so.
This is also supported by the JCache Features Not Supported section of the docs:
An app cannot dump the contents of the cache's keys or values.
(Note: I work for Google. but please don't take this as a response from Google. I haven't used AppEngine much myself.)
Upvotes: 1