Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Developer
sho3ebovich
Posts: 120
Registered: ‎12-22-2011
My Device: ---

Caching

Dears ,

 

I want to know caching mechanism in BackBerry 10 , 

Can i cahe String or Qvariant ? and How ?

 

Thanks 

Developer
ekke
Posts: 1,566
Registered: ‎04-08-2010
My Device: Z10 (red Limited Edition), Q10, Z30
My Carrier: Telekom.de, O2, Vodafone

Re: Caching

take a look at QSettings - easy to store Strings

 

or simply store the data as .json in your app/data

take a look at JsonDataAccess

easy to store QVariantMap as JSON Object

or QVariantList as JSON Array

 

-------------------------------------------------------------------------------
ekke (independent software architect, rosenheim, germany)

BlackBerry Elite Developer
BlackBerry Platinum Enterprise Partner
International Development Mobile Apps BlackBerry 10 Cascades
Cascades - Workshops / Trainings / Bootcamps

blog: http://ekkes-corner.org videos: http://www.youtube.com/user/ekkescorner http://vimeo.com/ekkescorner/videos
bb10-development: http://appbus.org Twitter: @ekkescorner
Developer
saprykin
Posts: 271
Registered: ‎05-29-2013
My Device: BlackBerry Z10

Re: Caching

Could you describe your problem with more details? Are you need to store settings or are you need to store generic data to speed up future access?
-------------------------------------------------------------------------------
NSR Reader for BlackBerry 10 @NSRReader on Twitter
Me @xelfium on Twitter
Developer
sho3ebovich
Posts: 120
Registered: ‎12-22-2011
My Device: ---

Re: Caching

need to store data returned from webservice

 

for example i want to save flag indicate that the user loged-in 

or 

save user data to use it in anoter time 

Developer
YamilBracho
Posts: 713
Registered: ‎05-31-2010
My Device: 8520

Re: Caching