lib/basket/configuration.rb in basket-0.0.3 vs lib/basket/configuration.rb in basket-0.0.4
- old
+ new
@@ -1,15 +1,16 @@
module Basket
class Configuration
- attr_accessor :redis_host, :redis_port, :redis_db, :namespace
+ attr_accessor :redis_host, :redis_port, :redis_db, :namespace, :redis_url
attr_reader :backend
def initialize
@redis_host = "127.0.0.1"
@redis_port = 6379
@redis_db = 15
@backend = BackendAdapter::HashBackend
@namespace = :basket
+ @redis_url = nil
end
def backend=(backend)
case backend
when :hash