@@ -1496,6 +1496,9 @@ Returned `status` value is:
14961496Returns shared value (` return_value ` ) identified by the key (` key_data ` ,
14971497` key_value ` ).
14981498
1499+ The ` return_value ` ` 0 ` can be used to check the existence of the key
1500+ (` key_data ` , ` key_value ` ) without retrieving its value.
1501+
14991502The compare-and-swap value (` return_cas ` ) can be used for atomically
15001503updating this value using [ ` proxy_set_shared_data ` ] .
15011504
@@ -1507,30 +1510,6 @@ Returned `status` value is:
15071510 point to invalid memory address.
15081511
15091512
1510- #### ` proxy_exists_shared_data `
1511-
1512- * params:
1513- - ` i32 (uint32_t) kvstore_id `
1514- - ` i32 (const char *) key_data `
1515- - ` i32 (size_t) key_size `
1516- - ` i32 (uint32_t *) return_cas `
1517- * returns:
1518- - ` i32 ( ` [ ` proxy_status_t ` ] ` ) status `
1519-
1520- Returns ` OK ` if value identified by the key (` key_data ` , ` key_value ` )
1521- exists in shared key-value store ` kvstore_id ` .
1522-
1523- The compare-and-swap value (` return_cas ` ) can be used for atomically
1524- updating this value using [ ` proxy_set_shared_data ` ] .
1525-
1526- Returned ` status ` value is:
1527- - ` OK ` on success.
1528- - ` UNKNOWN_RESOURCE_ID ` for unknown ` kvstore_id ` .
1529- - ` NOT_FOUND ` when the requested key was not found.
1530- - ` INVALID_MEMORY_ACCESS ` when ` key_data ` , ` key_size ` and/or ` return_cas `
1531- point to invalid memory address.
1532-
1533-
15341513## Shared Queues
15351514
15361515### Functions exposed by the host
0 commit comments