Skip to content

Commit 1cc43d7

Browse files
Jake ChampionJakeChampion
authored andcommitted
add adapter
1 parent 5d73df4 commit 1cc43d7

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

runtime/js-compute-runtime/host_interface/component/fastly_world_adapter.cpp

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -853,6 +853,19 @@ bool fastly_compute_at_edge_object_store_pending_lookup_wait(
853853
return ok;
854854
}
855855

856+
bool fastly_compute_at_edge_object_store_delete_async(
857+
fastly_compute_at_edge_object_store_handle_t store, fastly_world_string_t *key,
858+
fastly_compute_at_edge_object_store_pending_handle_t *ret,
859+
fastly_compute_at_edge_object_store_error_t *err) {
860+
return convert_result(fastly::object_store_delete_async(store, key->ptr, key->len, ret), err);
861+
}
862+
863+
bool fastly_compute_at_edge_object_store_pending_delete_wait(
864+
fastly_compute_at_edge_object_store_pending_handle_t h,
865+
fastly_compute_at_edge_object_store_error_t *err) {
866+
return convert_result(fastly::object_store_pending_delete_wait(h), err);
867+
}
868+
856869
bool fastly_compute_at_edge_object_store_insert(
857870
fastly_compute_at_edge_object_store_handle_t store, fastly_world_string_t *key,
858871
fastly_compute_at_edge_http_types_body_handle_t body_handle,

runtime/js-compute-runtime/host_interface/fastly.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,15 @@ WASM_IMPORT("fastly_object_store", "pending_lookup_wait")
382382
int object_store_pending_lookup_wait(fastly_compute_at_edge_object_store_pending_handle_t handle,
383383
fastly_compute_at_edge_http_types_body_handle_t *handle_out);
384384

385+
WASM_IMPORT("fastly_object_store", "delete_async")
386+
int object_store_delete_async(
387+
fastly_compute_at_edge_object_store_handle_t object_store_handle, const char *key,
388+
size_t key_len,
389+
fastly_compute_at_edge_object_store_pending_handle_t *pending_object_store_lookup_handle_out);
390+
391+
WASM_IMPORT("fastly_object_store", "pending_delete_wait")
392+
int object_store_pending_delete_wait(fastly_compute_at_edge_object_store_pending_handle_t handle);
393+
385394
WASM_IMPORT("fastly_object_store", "insert")
386395
int object_store_insert(fastly_compute_at_edge_object_store_handle_t object_store_handle,
387396
const char *key, size_t key_len,

0 commit comments

Comments
 (0)