Files
redistat/spec/model_helper.rb
Jim Myhrberg 18e6125c6a Added support for connection_ref's down throughout
the code, so models can connect to specific Redis
servers.

I believe a lot of the code needs some
restructuring at some point down the line to
handle multiple connections in a cleaner way, but
for now it'll do.
2010-11-28 11:47:26 +00:00

23 lines
276 B
Ruby

require "redistat"
class ModelHelper1
include Redistat::Model
end
class ModelHelper2
include Redistat::Model
depth :day
store_event true
hashed_label true
end
class ModelHelper3
include Redistat::Model
connect_to :port => 8379, :db => 14
end