B4J Library [B4X] KVS2 / KeyValueStore 2 - Simple & Powerful Local Datastore - Erel    Jul 16, 2020   (41 reactions) Recommended to use the newer b4xlib: https://www.b4x.com/android/forum/threads/b4x-kvs2-keyvaluestore2-library.120234/
KeyValueStore is a persistent key/value based data store. It is similar to the useful Map collection, however unlike Map which stores the data in memory, KVS stores the data in a da B4A Library [B4X] KVS - KeyValueStore library - Erel    Jul 21, 2021   (29 reactions) A key / value persistent store. The data is serialized using B4XSerializator and is stored in an internal database. The database can be shared between B4A, B4i and B4J.
Using KVS is similar to using a Map. You initialize it once and then you can put or get items with Put, Get or GetDefault methods. B4i Question What is the recommended method to store app settings/data between sessions? - Erel (first post)    Nov 23, 2022   (2 reactions) KeyValueStore is an excellent option. B4A Question How do you store user preferences or settings? - Erel (first post)    Feb 06, 2015   (2 reactions) Note that KeyValueStore is a more powerful option for storing data. B4A Tutorial KeyValueStore class - Simple and efficient key/value data store - Erel    Feb 17, 2016   (16 reactions) Sub Close
So if you do not need the more advanced features of a relational database then KeyValueStore is your probably best solution for data persisting.
The class is included in the attached example. It depends on the SQL and RandomAccessFile libraries.
V1.01 - Fixes an issue with open cursors B4A Question KeyValueStore in Home Screen Widget - Erel (first post)    Mar 07, 2023   (5 reactions) Sub Process_Globals
Public kvs As KeyValueStore
End Sub
'Called when an intent is received.
'Do not assume that anything else, including the starter service, has run before this method.
Private Sub Receiver_Receive (FirstTime As Boolean, StartingIntent As Intent)
If kvs.IsInitialized = Fal B4J Question keyValueStore is sluggish - xulihang    Mar 20, 2018 Hi,
I am writing a small registration web server using abmaterial. I store users' info on a single json file.
I think it is too simple to use json as my database, so I sought to keyValueStore. SQLite+keyvalue sounds great. But my app just increases from 6mb to 12mb and costs running memory. Also, B4A Question Map and list saved to file? - Erel (first post)    Sep 09, 2024   (1 reaction) Another option is to use KeyValueStore. It is based on B4XSerializator + SQLite. Very easy to use and very powerful. B4A Question KeyValueStore data - DonManfred (first post)    Apr 08, 2020   (2 reactions) KVS is basically a Sqlite Database. Once you store anything it is saved. After a reboot the value written should be existent. B4A Question Resume app - Brian Dean (first post)    Mar 16, 2022   (2 reactions) This is a fundamental part of your app design that should have been sorted out before you started any coding at all. If you did not do this then you may have to rewrite parts of your app, even if you do not change to B4XPages.
Yes, a KeyValueStore is designed for exactly this purpose. You need to Page: 1   2   3   4   5   6   7   Powered by ColBERT |