Sha256: fd30e5ef80526dec7d57b9fb8016bd4eedaee23838f0f916d34951740c4ded0a
Contents?: true
Size: 1017 Bytes
Versions: 6
Compression:
Stored size: 1017 Bytes
Contents
require 'anyway' module Influxer # Influxer configuration class Config < Anyway::Config config_name :influxdb # influxdb-ruby configuration parameters + cache option attr_config :hosts, :host, :port, :username, :password, :database, :time_precision, :use_ssl, :verify_ssl, :ssl_ca_cert, :auth_method, :initial_delay, :max_delay, :open_timeout, :read_timeout, :retry, :prefix, :denormalize, :udp, :async, database: 'db', time_precision: 'ns', cache: false def load super # we want pass @cache value as options to cache store, so we want it to be a Hash @cache = {}.with_indifferent_access if @cache == true end end end
Version data entries
6 entries across 6 versions & 1 rubygems