diff --git a/lib/redis/connection/memory.rb b/lib/redis/connection/memory.rb
index <HASH>..<HASH> 100644
--- a/lib/redis/connection/memory.rb
+++ b/lib/redis/connection/memory.rb
@@ -16,7 +16,8 @@ class Redis
       end
 
       def self.connect(options = {})
-        self.instances[options] ||= self.new(true)
+        instance_key = [options[:host], options[:port]]
+        instances[instance_key] ||= self.new(options)
       end
 
       def initialize(connected = false)
Store memory instances by host & port