Sha256: 6db3ad7f94bc2b6ab401caeb36c66b3ea95c14d1ce8b0584a0ffa961e2a0cbbb

Contents?: true

Size: 1.02 KB

Versions: 21

Compression:

Stored size: 1.02 KB

Contents

module Wazuh
  module Api
    module Endpoints
      module Cache
        #
        # Clears cache of the specified group.
        #
        # @params [String] group
        #   cache group
        # @see https://documentation.wazuh.com/3.10/user-manual/api/reference.html#clear-group-cache
        def clear_group_cache(group)
          delete "/cache/#{group}"
        end

        # Clears entire cache.
        #
        # @see https://documentation.wazuh.com/3.10/user-manual/api/reference.html#delete-cache-index
        def clear_cache
          delete '/cache'
        end

        # Returns current cache index.
        #
        # @see https://documentation.wazuh.com/3.10/user-manual/api/reference.html#get-cache-index
        def cache_index
          get "/cache"
        end

        # Returns cache configuration
        #
        # @see https://documentation.wazuh.com/3.10/user-manual/api/reference.html#return-cache-configuration
        def cache_config
          get "/cache/config"
        end
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
wazuh-ruby-client-0.3.7 lib/wazuh/api/endpoints/cache.rb
wazuh-ruby-client-0.3.6 lib/wazuh/api/endpoints/cache.rb
wazuh-ruby-client-0.3.5 lib/wazuh/api/endpoints/cache.rb
wazuh-ruby-client-0.3.4 lib/wazuh/api/endpoints/cache.rb
wazuh-ruby-client-0.3.3 lib/wazuh/api/endpoints/cache.rb
wazuh-ruby-client-0.3.2 lib/wazuh/api/endpoints/cache.rb
wazuh-ruby-client-0.3.1 lib/wazuh/api/endpoints/cache.rb
wazuh-ruby-client-0.3.0 lib/wazuh/api/endpoints/cache.rb
wazuh-ruby-client-0.2.9 lib/wazuh/api/endpoints/cache.rb
wazuh-ruby-client-0.2.8 lib/wazuh/api/endpoints/cache.rb
wazuh-ruby-client-0.2.7 lib/wazuh/api/endpoints/cache.rb
wazuh-ruby-client-0.2.6 lib/wazuh/api/endpoints/cache.rb
wazuh-ruby-client-0.2.5 lib/wazuh/api/endpoints/cache.rb
wazuh-ruby-client-0.2.4 lib/wazuh/api/endpoints/cache.rb
wazuh-ruby-client-0.2.3 lib/wazuh/api/endpoints/cache.rb
wazuh-ruby-client-0.2.2 lib/wazuh/api/endpoints/cache.rb
wazuh-ruby-client-0.2.1 lib/wazuh/api/endpoints/cache.rb
wazuh-ruby-client-0.2.0 lib/wazuh/api/endpoints/cache.rb
wazuh-ruby-client-0.1.2 lib/wazuh/api/endpoints/cache.rb
wazuh-ruby-client-0.1.1 lib/wazuh/api/endpoints/cache.rb