![]() ![]() (Note that these are not member functions.)Īs_config_add_host ( as_config *config, const char *address, uint16_t port)Īs_config_add_hosts ( as_config *config, const char *string, uint16_t default_port)Īs_config_add_rack_id ( as_config *config, int rack_id)Īs_config_clear_hosts ( as_config *config)Īs_config_lua_init ( as_config_lua * lua)Īs_config_set_cluster_event_callback ( as_config *config, as_cluster_event_callback callback, void *udata)Īs_config_set_cluster_name ( as_config *config, const char * cluster_name)Īs_config_set_user ( as_config *config, const char * user, const char * password)Īs_config_tls_add_host ( as_config *config, const char *address, const char *tls_name, uint16_t port)Īs_config_tls_set_cafile ( as_config *config, const char *cafile)Īs_config_tls_set_capath ( as_config *config, const char *capath)Īs_config_tls_set_cert_blacklist ( as_config *config, const char *cert_blacklist)Īs_config_tls_set_certfile ( as_config *config, const char *certfile)Īs_config_tls_set_cipher_suite ( as_config *config, const char *cipher_suite)Īs_config_tls_set_keyfile ( as_config *config, const char *keyfile)Īs_config_tls_set_keyfile_pw ( as_config *config, const char *pw)Īs_config_tls_set_protocols ( as_config *config, const char *protocols)įriends And Related Function Documentation If you find yourself setting the key policy value for every call to aerospike_key_put(), then you may find it beneficial to set the global as_policy_write in as_policies.write, which all write operations will use. If you find that you have behavior that you want every use of an operation to utilize, then you can specify the default policy in as_config.policies.įor example, the aerospike_key_put() operation takes an as_policy_write policy. If the global policy for that operation is undefined, then the global default value will be used. If a value of the policy is not defined, then the rule is to fallback to the global policy for that operation. This policy supersedes any global policy defined. This is considered a local policy, and is a single use policy. Policies define the behavior of the client, which can be global across operations, global to a single operation, or local to a single use of an operation.Įach database operation accepts a policy for that operation as an a argument. ![]() The as_config_init() function already presets default values for the policies. The configuration also defines default policies for the application. The client will iterate over the list until it connects with one of the hosts. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |