lib/trifle.rb in trifle-0.0.1 vs lib/trifle.rb in trifle-0.0.2
- old
+ new
@@ -5,12 +5,10 @@
require "trifle/initialize_with_redis"
class Trifle
include InitializeWithRedis
- KEY = "trifle".freeze
-
def load options = {}
loader.handle options
end
def find ip
@@ -18,12 +16,12 @@
end
protected
def loader
- @loader = Loader.new(redis)
+ @loader = Loader.new(redis, key: key)
end
def finder
- @finder = Finder.new(redis)
+ @finder = Finder.new(redis, key: key)
end
end
\ No newline at end of file