Policy attributes used in batch read commands.
Definition at line 1072 of file as_policy.h.
#include "as_policy.h"
Data Fields | |
struct as_exp * | filter_exp |
as_policy_read_mode_ap | read_mode_ap |
as_policy_read_mode_sc | read_mode_sc |
int | read_touch_ttl_percent |
Related Symbols | |
(Note that these are not member symbols.) | |
static as_policy_batch_read * | as_policy_batch_read_init (as_policy_batch_read *p) |
|
related |
Initialize as_policy_batch_read to default values.
Definition at line 1864 of file as_policy.h.
References AS_POLICY_READ_MODE_AP_DEFAULT, AS_POLICY_READ_MODE_SC_DEFAULT, filter_exp, read_mode_ap, read_mode_sc, and read_touch_ttl_percent.
struct as_exp* as_policy_batch_read::filter_exp |
Optional expression filter. If filter_exp exists and evaluates to false, the command is ignored. This can be used to eliminate a client/server roundtrip in some cases.
aerospike_destroy() automatically calls as_exp_destroy() on all global default policy filter expression instances. The user is responsible for calling as_exp_destroy() on filter expressions when setting temporary command policies.
Default: NULL
Definition at line 1084 of file as_policy.h.
as_policy_read_mode_ap as_policy_batch_read::read_mode_ap |
Read policy for AP (availability) namespaces. Default: AS_POLICY_READ_MODE_AP_ONE
Definition at line 1090 of file as_policy.h.
as_policy_read_mode_sc as_policy_batch_read::read_mode_sc |
Read policy for SC (strong consistency) namespaces. Default: AS_POLICY_READ_MODE_SC_SESSION
Definition at line 1096 of file as_policy.h.
int as_policy_batch_read::read_touch_ttl_percent |
Determine how record TTL (time to live) is affected on reads. When enabled, the server can efficiently operate as a read-based LRU cache where the least recently used records are expired. The value is expressed as a percentage of the TTL sent on the most recent write such that a read within this interval of the record’s end of life will generate a touch.
For example, if the most recent write had a TTL of 10 hours and read_touch_ttl_percent is set to 80, the next read within 8 hours of the record's end of life (equivalent to 2 hours after the most recent write) will result in a touch, resetting the TTL to another 10 hours.
Values:
Default: 0
Definition at line 1117 of file as_policy.h.