Hi Prafulla, 1.) Nothing will come back, so you need to check for the existence of the key on the object that is returned.
2.) Looks like a bug. Please star http://code.google.com/p/opensocial-resources/issues/detail?id=152 to get notifications about fixes or updates for this problem. Hope this helps, ~Arne On Jun 18, 7:35 am, prafulla <[EMAIL PROTECTED]> wrote: > Hi, > > I am working with the Persistence API, and have a few queries > regarding that. > > 1) What happens if a try to retrieve a value for a key which does not > exist for that particular user. Say I have a key named "token". What > happens if I try to retrieve the value of "token" for a user who > doesn't even have the key stored in his persistent storage? > > 2) I have followed the steps given in "http://code.google.com/apis/ > opensocial/articles/persistence.html#persistence-clearingdata" to > delete the key-value pairs. But, nothing worked for me. Instead of > clearing the key and value, my code was storing "null" as the value > for the key. > > Please help me out! > > Thanks, > Prafulla --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "OpenSocial Application Development" 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/opensocial-api?hl=en -~----------~----~----~----~------~----~------~--~---
