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
Posts: 120
Registered: ‎12-22-2011
My Device: ---
My Carrier: ---

Caching

Dears ,

 

I want to know caching mechanism in BackBerry 10 , 

Can i cahe String or Qvariant ? and How ?

 

Thanks 

Developer
Posts: 1,746
Registered: ‎04-08-2010
My Device: Passport Silver, PRIV
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 native Mobile Business Apps
BlackBerry 10 | Qt Mobile (Android, iOS)
Workshops / Trainings / Bootcamps

blog: http://ekkes-corner.org
mobile-development: http://appbus.org Twitter: @ekkescorner
Developer
Posts: 271
Registered: ‎05-29-2013
My Device: BlackBerry Z10
My Carrier: MTS

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
Posts: 120
Registered: ‎12-22-2011
My Device: ---
My Carrier: ---

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
Posts: 713
Registered: ‎05-31-2010
My Device: 8520
My Carrier: Movistar

Re: Caching