Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion exe/redis-dump
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class Redis::Dump::CLI
before do |obj|
obj.global.uri ||= ENV['REDIS_URI']
obj.global.uri ||= 'redis://%s:%s' % [Redis::Dump.host, Redis::Dump.port]
obj.global.uri = 'redis://' << obj.global.uri unless obj.global.uri.match(/^redis:\/\//)
obj.global.uri = 'redis://' << obj.global.uri unless obj.global.uri.match(/^rediss?:\/\//)
obj.global.database &&= obj.global.database.to_i
obj.global.database ||= (0..15)
Redis::Dump.chunk_size = obj.global.count if obj.global.count
Expand Down
2 changes: 1 addition & 1 deletion exe/redis-load
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class Redis::Dump::CLI
before do |obj|
obj.global.uri ||= ENV['REDIS_URI']
obj.global.uri ||= 'redis://%s:%s' % [Redis::Dump.host, Redis::Dump.port]
obj.global.uri = 'redis://' << obj.global.uri unless obj.global.uri.match(/^redis:\/\//)
obj.global.uri = 'redis://' << obj.global.uri unless obj.global.uri.match(/^rediss?:\/\//)
obj.global.database &&= obj.global.database.to_i
obj.global.database ||= (0..15)
Redis::Dump.ld "redis_uri: #{obj.global.uri} (#{obj.global.database})"
Expand Down