![]() |
Policies define the behavior of database operations.
Policies fall into two groups: policy values and operation policies. A policy value is a single value which defines how the client behaves. An operation policy is a group of policy values which affect an operation.
The following are the policy values. For details, please see the documentation for each policy value
The following are the operation policies. Operation policies are groups of policy values for a type of operation.
Data Structures | |
struct | as_policy_admin |
struct | as_policy_apply |
struct | as_policy_batch |
struct | as_policy_info |
struct | as_policy_operate |
struct | as_policy_query |
struct | as_policy_read |
struct | as_policy_remove |
struct | as_policy_scan |
struct | as_policy_write |
Macros | |
#define | AS_POLICY_EXISTS_DEFAULT AS_POLICY_EXISTS_IGNORE |
#define | AS_POLICY_GEN_DEFAULT AS_POLICY_GEN_IGNORE |
#define | AS_POLICY_KEY_DEFAULT AS_POLICY_KEY_DIGEST |
#define | AS_POLICY_RETRY_DEFAULT AS_POLICY_RETRY_NONE |
#define | AS_POLICY_TIMEOUT_DEFAULT 1000 |
#define AS_POLICY_EXISTS_DEFAULT AS_POLICY_EXISTS_IGNORE |
Default as_policy_exists value
Definition at line 94 of file as_policy.h.
#define AS_POLICY_GEN_DEFAULT AS_POLICY_GEN_IGNORE |
Default as_policy_gen value
Definition at line 80 of file as_policy.h.
#define AS_POLICY_KEY_DEFAULT AS_POLICY_KEY_DIGEST |
Default as_policy_key value
Definition at line 87 of file as_policy.h.
#define AS_POLICY_RETRY_DEFAULT AS_POLICY_RETRY_NONE |
Default as_policy_retry value
Definition at line 73 of file as_policy.h.
#define AS_POLICY_TIMEOUT_DEFAULT 1000 |
Default timeout value
Definition at line 66 of file as_policy.h.
enum as_policy_bool |
Boolean Policy.
This enum provides boolean values (true,false) and an undefined value for the boolean.
Definition at line 272 of file as_policy.h.
enum as_policy_exists |
Existence Policy.
Specifies the behavior for writing the record depending whether or not it exists.
Definition at line 226 of file as_policy.h.
enum as_policy_gen |
Generation Policy
Specifies the behavior of record modifications with regard to the generation value.
Definition at line 139 of file as_policy.h.
enum as_policy_key |
Key Policy
Specifies the behavior for whether keys or digests should be sent to the cluster.
Definition at line 182 of file as_policy.h.
enum as_policy_retry |
Retry Policy
Specifies the behavior of failed operations.
Definition at line 107 of file as_policy.h.