Kv_store
Key-value pairs can be permanently stored in the file system. If is enabled, key-value pairs can be stored in the cache. For details about cache specifications, see MAX_CACHE_SIZE. For details about the number of key-value pairs that can be stored in an application, see .
Since:
1.0
Version:
1.0
Summary
Files
Details
Function Documentation
Description:
Clears all key-value pairs from the cache.
Attention:
This function is available only if FEATURE_KV_CACHE is enabled.
Returns:
Returns 0 if the operation is successful; returns -1 otherwise.
UtilsDeleteValue()
Description:
Deletes the value matching a specified key from the file system or cache.
Parameters:
Returns:
Returns 0 if the operation is successful; returns -9 if a parameter is incorrect; returns -1 in other scenarios.
UtilsGetValue()
Description:
Obtains the value matching a specified key from the file system or cache.
Parameters:
Returns:
Returns the length of the value if the operation is successful; returns -9 if a parameter is incorrect; returns -1 in other scenarios; returns 0 if the value is obtained from the cache.
Description:
Adds or updates the value matching a specified key in the file system or cache.
Parameters:
Returns 0 if the operation is successful; returns -9 if a parameter is incorrect; returns -1 in other scenarios.