Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions php_stubs/libaerospike-php-stubsv1.0.0.php
Original file line number Diff line number Diff line change
Expand Up @@ -3777,6 +3777,8 @@ class BatchWritePolicy {

public $record_exists_action;

public $send_key;

public function __construct() {}

/**
Expand Down Expand Up @@ -3857,6 +3859,16 @@ public function setExpiration(mixed $expiration) {}
public function getDurableDelete(): bool {}

public function setDurableDelete(bool $durable_delete) {}

/**
* SendKey determines to whether send user defined key in addition to hash digest on both reads and writes.
* If the key is sent on a write, the key will be stored with the record on
* the server.
* The default is to not send the user defined key.
*/
public function getSendKey(): bool {}

public function setSendKey(bool $send_key) {}
}

/**
Expand Down
10 changes: 10 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4796,6 +4796,16 @@ impl BatchWritePolicy {
pub fn set_durable_delete(&mut self, durable_delete: bool) {
self._as.durable_delete = durable_delete;
}

#[getter]
pub fn get_send_key(&self) -> bool {
self._as.send_key
}

#[setter]
pub fn set_send_key(&mut self, send_key: bool) {
self._as.send_key = send_key;
}
}

impl Default for BatchWritePolicy {
Expand Down