Module: Wazuh::Api::Endpoints::Cache

Included in:
Wazuh::Api::Endpoints, V4::Cache
Defined in:
lib/wazuh/api/endpoints/cache.rb

Instance Method Summary collapse

Instance Method Details

#cache_configObject

Returns cache configuration



32
33
34
# File 'lib/wazuh/api/endpoints/cache.rb', line 32

def cache_config
  get "/cache/config"
end

#cache_indexObject

Returns current cache index.



25
26
27
# File 'lib/wazuh/api/endpoints/cache.rb', line 25

def cache_index
  get "/cache"
end

#clear_cacheObject

Clears entire cache.



18
19
20
# File 'lib/wazuh/api/endpoints/cache.rb', line 18

def clear_cache
  delete '/cache'
end

#clear_group_cache(group) ⇒ Object

Clears cache of the specified group.



11
12
13
# File 'lib/wazuh/api/endpoints/cache.rb', line 11

def clear_group_cache(group)
  delete "/cache/#{group}"
end