lib/ductr/configuration.rb in ductr-0.2.2 vs lib/ductr/configuration.rb in ductr-0.2.3
- old
+ new
@@ -24,13 +24,16 @@
# @return [Class<ActiveSupport::Cache::Store>, Symbol] The store adapter to use
# @see https://edgeapi.rubyonrails.org/classes/ActiveSupport/Cache.html#method-c-lookup_store
attr_reader :store_adapter
- # @return [Array] The store adapter config
+ # @return [Array] The store adapter config args
attr_reader :store_parameters
+ # @return [Hash<Symbol, Object>] The store adapter config options
+ attr_reader :store_options
+
# @return [Hash] The parsed YML configuration
attr_reader :yml
#
# Initializing environment to "development" by default, setting project root, parsing YML with the config gem
@@ -54,12 +57,13 @@
# @param [Class<ActiveSupport::Cache::Store>, Symbol] adapter The store adapter class
# @param [Array] *parameters The store adapter configuration
#
# @return [void]
#
- def store(adapter, *parameters)
+ def store(adapter, *parameters, **options)
@store_adapter = adapter
@store_parameters = parameters
+ @store_options = options
end
#
# Memoize configured adapters based on the YAML configuration.
#