Function es_clear_cache

Source
pub unsafe extern "C" fn es_clear_cache(
    client: *mut es_client_t,
) -> es_clear_cache_result_t
Available on macOS only.
Expand description

Clear all cached results for all clients.

  • client: that will perform the request

This functions clears the shared cache for all ES clients and is hence rate limited. If es_clear_cache is called too frequently it will return ES_CLEAR_CACHE_RESULT_ERR_THROTTLE.

It is permissible to pass any valid es_client_t object created by es_new_client.