Basic Data Operations
Important Payload Limit
Keep payloads under 20,480 bytes. This is the maximum size the engine can send or receive at one time. If you expect a response larger than 20,480 bytes, provide a callback function so the mod can use its internal fetch/chunking flow and deliver the reconstructed data to your callback.
This section contains documentation for the basic data operations of ArmaDragonflyClient that allow for simple key-value storage and retrieval.
Available Functions
- delete - Delete a value from the database
- fetch - Fetch a value from the database
- get - Get a value from the database
- save - Save the database to disk
- set - Set a value in the database
Example Usage
// Set a value
["myKey", [myValue]] call dragonfly_db_fnc_set;
// Get a value
["myKey", "myFunction"] call dragonfly_db_fnc_get;
// Delete a key
["myKey"] call dragonfly_db_fnc_delete;
// Save database to disk
[] call dragonfly_db_fnc_save;