Module: Wazuh::Api::Endpoints::Cache
- Included in:
- Wazuh::Api::Endpoints, V4::Cache
- Defined in:
- lib/wazuh/api/endpoints/cache.rb
Instance Method Summary collapse
-
#cache_config ⇒ Object
Returns cache configuration.
-
#cache_index ⇒ Object
Returns current cache index.
-
#clear_cache ⇒ Object
Clears entire cache.
-
#clear_group_cache(group) ⇒ Object
Clears cache of the specified group.
Instance Method Details
#cache_config ⇒ Object
Returns cache configuration
32 33 34 |
# File 'lib/wazuh/api/endpoints/cache.rb', line 32 def cache_config get "/cache/config" end |
#cache_index ⇒ Object
Returns current cache index.
25 26 27 |
# File 'lib/wazuh/api/endpoints/cache.rb', line 25 def cache_index get "/cache" end |
#clear_cache ⇒ Object
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 |