Module sled::c
[−]
[src]
C-compatible API for the lock-free log-structured B+tree.
Functions
sled_cas⚠ |
Compare and swap.
Returns 1 if successful, 0 if unsuccessful.
Otherwise sets |
sled_close⚠ |
Close a sled lock-free log-structured tree. |
sled_config_flush_every_ms⚠ |
Set the configured IO buffer flush interval in milliseconds. |
sled_config_set_cache_capacity⚠ |
Set the configured cache capacity in bytes. |
sled_config_set_path⚠ |
Set the configured file path. The caller is responsible for freeing the path string after calling this (it is copied in this function). |
sled_config_snapshot_after_ops⚠ |
Set the configured snapshot operation threshold. |
sled_config_use_compression⚠ |
Configure the use of the zstd compression library. |
sled_create_config⚠ |
Create a new configuration. |
sled_del⚠ |
Delete the value of a key. |
sled_destroy_config⚠ |
Destroy a configuration. |
sled_free_buf⚠ |
Free a buffer originally allocated by sled. |
sled_free_iter⚠ |
Free an iterator. |
sled_get⚠ |
Get the value of a key.
Caller is responsible for freeing the returned value with |
sled_iter_next⚠ |
Get they next kv pair from an iterator.
Caller is responsible for freeing the key and value with |
sled_open⚠ |
Open a sled lock-free log-structured tree. |
sled_scan⚠ |
Iterate from a starting key.
Caller is responsible for freeing the returned iterator with |
sled_set⚠ |
Set a key to a value. |