According to the JavaDoc, the IdentifiableValue interface includes a 
getValue() method which returns the value as an Object:

http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/memcache/MemcacheService.IdentifiableValue.html

IdentifiableValue idVal = memcache.getIdentifiable(key); // Get the value as 
an IdentifiableValue
Object myMemcacheObj = idVal.getValue(); // Pull the Object out of that; 
does not touch memcache again.

maybeTouchTheObj(myMemcacheObj);

memcache.putIfUntouched(key, idVal, myMemcacheObj); // Put the object back.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" 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-java?hl=en.

Reply via email to