title: ArmaRAMDb - Add Task icon: mdi:file-text-outline
Adds a task to the database operation queue. This function is used to schedule database operations that can be processed sequentially, providing a way to manage multiple database requests in an organized manner.
Parameter | Type | Description | Default |
---|---|---|---|
_taskType | String | Type of operation to perform (e.g., "hgetall") | "" |
_key | String | Name of the stored key | "" |
_keyField | String | Field name for hash operations | "" |
_index | Number | Index for list operations | -1 |
_value | Array, String, Number, or Boolean | Value to store (for set operations) | [] |
_function | String | Name of function to call with the result | "" |
_call | Boolean | Whether to call the function directly (true) or spawn (false) | false |
_netId | String | NetID of the target to receive the result | "" |
None. The task is added to the queue and processed asynchronously.
ramdb_db_fnc_processQueue
: Processes the pending tasks in the queueramdb_db_fnc_handler
: Handles the results of completed database operationsramdb_db_fnc_scheduler
: Manages callback responses from the databaseAdd Task | Handler | Init | Print Addon Name | Process Queue | Scheduler | Test