lib/secret_config/registry.rb
# Refresh the in-memory cached copy of the centralized configuration information.
# Environment variable values will take precedence over the central store values.
Refresh the in-memory cached copy of the centralized configuration information.
Environment variable values will take precedence over the central store values.
Refresh the in - memory cached copy of the centralized configuration information . Environment variable values will take precedence over the central store values .
def refresh!
      existing_keys = cache.keys
      updated_keys  = []
      fetch_path(path).each_pair do |key, value|
        cache[key] = env_var_override(key, value)
        updated_keys << key
      end
      (existing_keys - updated_keys).each { |key| cache.delete(key) }
      true
    end
def refresh! existing_keys = cache . keys updated_keys = [ ] fetch_path ( path ) . each_pair do | key , value | cache [ key ] = env_var_override ( key , value ) updated_keys << key end ( existing_keys - updated_keys ) . each { | key | cache . delete ( key ) } true end
Refresh the in-memory cached copy of the centralized configuration information.
Refresh the in - memory cached copy of the centralized configuration information .
# Remove keys deleted from the central registry.