lib/extface.rb in extface-0.0.3 vs lib/extface.rb in extface-0.0.5
- old
+ new
@@ -1,9 +1,11 @@
require "extface/engine"
require "extface/routes"
require "extface/mapping"
require "extface/extfaceable"
+require "extface/extfaceable"
+require "redis-namespace"
module Extface
mattr_accessor :redis_connection_string
mattr_reader :mappings
@@mappings = ActiveSupport::OrderedHash.new
@@ -19,10 +21,10 @@
end
def redis_block
r = redis_instance
begin
- yield r
+ yield Redis::Namespace.new(:extface, :redis => r)
ensure
r.quit
end
end