|
QDB_API_LINKAGE qdb_error_t | qdb_string_get_noalloc (qdb_handle_t handle, const char *alias, char *content, qdb_size_t *content_length) |
| Retrieves an entry's content from the quasardb server. The caller is responsible for allocating and freeing the provided buffer. More...
|
|
QDB_API_LINKAGE qdb_error_t | qdb_string_get (qdb_handle_t handle, const char *alias, const char **content, qdb_size_t *content_length) |
| Retrieves an entry's content from the quasardb server. More...
|
|
QDB_API_LINKAGE qdb_error_t | qdb_reserved_string_get (qdb_handle_t handle, const char *alias, const char **content, qdb_size_t *content_length, qdb_size_t offset) |
| Retrieves a part of an entry's content from the quasardb server. More...
|
|
QDB_API_LINKAGE qdb_error_t | qdb_string_get_and_remove (qdb_handle_t handle, const char *alias, const char **content, qdb_size_t *content_length) |
| Atomically gets an entry from the quasardb server and removes it. More...
|
|
QDB_API_LINKAGE qdb_error_t | qdb_string_put (qdb_handle_t handle, const char *alias, const char *content, qdb_size_t content_length, qdb_time_t expiry_time) |
| Creates a new entry and sets its content to the provided string. More...
|
|
QDB_API_LINKAGE qdb_error_t | qdb_string_update (qdb_handle_t handle, const char *alias, const char *content, qdb_size_t content_length, qdb_time_t expiry_time) |
| Creates or updates an entry and sets its content to the provided string. More...
|
|
QDB_API_LINKAGE qdb_error_t | qdb_reserved_string_merge (qdb_handle_t handle, const char *alias, const char *content, qdb_size_t content_length, qdb_size_t offset, int truncate, qdb_time_t expiry_time) |
| This function is reserved for internal use and its usage is discouraged. More...
|
|
QDB_API_LINKAGE qdb_error_t | qdb_string_get_and_update (qdb_handle_t handle, const char *alias, const char *update_content, qdb_size_t update_content_length, qdb_time_t expiry_time, const char **get_content, qdb_size_t *get_content_length) |
| Atomically gets and updates (in this order) the entry on the quasardb server. More...
|
|
QDB_API_LINKAGE qdb_error_t | qdb_string_compare_and_swap (qdb_handle_t handle, const char *alias, const char *new_value, qdb_size_t new_value_length, const char *comparand, qdb_size_t comparand_length, qdb_time_t expiry_time, const char **original_value, qdb_size_t *original_value_length) |
| Atomically compares the entry with comparand and updates it to new_value if, and only if, they match. More...
|
|
QDB_API_LINKAGE qdb_error_t | qdb_string_remove_if (qdb_handle_t handle, const char *alias, const char *comparand, qdb_size_t comparand_length) |
| Atomically removes the entry on the server if the content matches. More...
|
|
QDB_API_LINKAGE qdb_error_t | qdb_string_scan (qdb_handle_t handle, const char *pattern, qdb_size_t pattern_length, qdb_int_t max_count, const char ***aliases, size_t *alias_count) |
| Retrieves all strings that have content matching the specified pattern. More...
|
|
QDB_API_LINKAGE qdb_error_t | qdb_string_scan_regex (qdb_handle_t handle, const char *pattern, qdb_int_t max_count, const char ***aliases, size_t *alias_count) |
| Retrieves all strings that have content matching the specified regular expression (regex) More...
|
|