lib/fog/aws/elasticache.rb in fog-1.20.0 vs lib/fog/aws/elasticache.rb in fog-1.21.0

- old
+ new

@@ -60,11 +60,11 @@ options[:region] ||= 'us-east-1' @host = options[:host] || "elasticache.#{options[:region]}.amazonaws.com" @path = options[:path] || '/' @port = options[:port] || 443 @scheme = options[:scheme] || 'https' - @connection = Fog::Connection.new( + @connection = Fog::XML::Connection.new( "#{@scheme}://#{@host}:#{@port}#{@path}", options[:persistent] ) end def reload @@ -137,10 +137,19 @@ hash[region] = Hash.new do |region_hash, key| region_hash[key] = { :clusters => {}, # cache cluster data, indexed by cluster ID :security_groups => {}, # security groups :subnet_groups => {}, - } + :parameter_groups => {"default.memcached1.4" => { "CacheParameterGroupFamily"=>"memcached1.4", + "Description"=>"Default parameter group for memcached1.4", + "CacheParameterGroupName"=>"default.memcached1.4" + }, + "default.redis2.6" => {"CacheParameterGroupFamily"=>"redis2.6", + "Description"=>"Default parameter group for redis2.6", + "CacheParameterGroupName"=>"default.redis2.6" + } + } + } end end end def self.reset