lib/picky/internals/index/redis/basic.rb in picky-1.4.3 vs lib/picky/internals/index/redis/basic.rb in picky-1.5.0

- old
+ new

@@ -11,18 +11,23 @@ # Not directly useable, as it does not provide # dump/load methods. # class Basic - attr_reader :namespace + attr_reader :namespace, :backend # An index cache takes a path, without file extension, # which will be provided by the subclasses. # def initialize namespace @namespace = namespace - - @backend = ::Redis.new + + # TODO Turn this inside out such that people can pass in + # their own Redis instance. + # + # TODO Make the :db a real option. + # + @backend = ::Redis.new :db => 15 end # Does nothing. # def load \ No newline at end of file