--
Vous recevez ce message, car vous êtes abonné à un sujet dans le groupe Google Groupes "RoboSpice".
Pour vous désabonner de ce sujet, visitez le site https://groups.google.com/d/topic/robospice/SeYxhok3dqo/unsubscribe.
Pour vous désabonner de ce groupe et de tous ses sujets, envoyez un e-mail à l'adresse robospice+...@googlegroups.com.
Pour obtenir davantage d'options, consultez la page https://groups.google.com/d/optout.
Hi Nikola, I understand that part but I don't know my cache keys at runtime.
Thanks
--
Vous recevez ce message car vous êtes abonné à un sujet dans le groupe Google Groupes "RoboSpice".
Pour vous désabonner de ce sujet, visitez le site https://groups.google.com/d/topic/robospice/SeYxhok3dqo/unsubscribe.
Pour vous désabonner de ce groupe et de tous ses sujets, envoyez un e-mail à l'adresse robospice+unsubscribe@googlegroups.com.
Pour plus d'options, visitez le site https://groups.google.com/d/optout .
Pour vous désabonner de ce groupe et de tous ses sujets, envoyez un e-mail à l'adresse robospice+...@googlegroups.com.
Hi Nikola,The user is provided with search function that allows to search for items (which have unique id which is also used as cache key). Each user might have different items on different devices. What I want to do is show all those items on the startup of the app which means that I need to find out cache keys for Class (just one class). and then execute requests for all this data.Do you have any more ideas? I am trying to ignore AsyncTask as long as possible :)Cheers,Damian
On Wednesday, 3 December 2014 12:04:51 UTC, Nikola Keskinov wrote:Hi Damian,
It would require some more work to make it complete and robust, but you may have to think about calling Future.get() in an AsyncTask.There is no async way of obtaining all cache keys in RoboSpice currently, but it would also be a challenge to implement one because cache stores various types and RequestListener is bound to a single one.I would, however, suggest that you revise your app architecture, as it is pretty unusual to have such a requirement. I believe it is possible to either have a single type for all various objects you store in cache (in which case you will be able to use com.octo.android.robospice.SpiceManager#getFromCache easily), or have better control of the cache keys at runtime, so you will specifically know which ones you need.Sorry for not having anything more useful, but if you give us some more details on the way you use RoboSpice (e.g. how is the cache filled in the first place), maybe we will be able to help more.Regards,NikolaOn Wed Dec 03 2014 at 12:26:50 AM Damian Mazurkiewicz <mazurkiew...@mazurlabs.com> wrote:Hi Nikola, I understand that part but I don't know my cache keys at runtime.
Thanks
--
Vous recevez ce message car vous êtes abonné à un sujet dans le groupe Google Groupes "RoboSpice".
Pour vous désabonner de ce sujet, visitez le site https://groups.google.com/d/topic/robospice/SeYxhok3dqo/unsubscribe.Pour vous désabonner de ce groupe et de tous ses sujets, envoyez un e-mail à l'adresse robospice+...@googlegroups.com.
Pour plus d'options, visitez le site https://groups.google.com/d/optout .
--
Vous recevez ce message, car vous êtes abonné à un sujet dans le groupe Google Groupes "RoboSpice".
Pour vous désabonner de ce sujet, visitez le site https://groups.google.com/d/topic/robospice/SeYxhok3dqo/unsubscribe.
Pour vous désabonner de ce groupe et de tous ses sujets, envoyez un e-mail à l'adresse robospice+...@googlegroups.com.