mirror of
https://github.com/jimeh/redistat.git
synced 2026-02-19 13:26:39 +00:00
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.
23 lines
276 B
Ruby
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 |