mirror of
https://github.com/jimeh/redistat.git
synced 2026-02-19 05:16:39 +00:00
improved Redistat::Database
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
module Redistat
|
||||
module Database
|
||||
def db
|
||||
Redistat.redis
|
||||
def self.included(base)
|
||||
base.extend(Database)
|
||||
end
|
||||
def self.db
|
||||
def db
|
||||
Redistat.redis
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
module Redistat
|
||||
class Event
|
||||
include Database
|
||||
extend Database
|
||||
|
||||
attr_reader :id
|
||||
attr_reader :key
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
module Redistat
|
||||
class Summary
|
||||
include Database
|
||||
extend Database
|
||||
|
||||
def self.update_all(key, stats = {}, depth_limit = nil)
|
||||
stats ||= {}
|
||||
|
||||
Reference in New Issue
Block a user