lib/redistat.rb in redistat-0.1.1 vs lib/redistat.rb in redistat-0.2.0
- old
+ new
@@ -7,13 +7,14 @@
require 'time'
require 'time_ext'
require 'json'
require 'digest/sha1'
-require 'redistat/collection'
+require 'redistat/options'
require 'redistat/connection'
require 'redistat/database'
+require 'redistat/collection'
require 'redistat/date'
require 'redistat/date_helper'
require 'redistat/event'
require 'redistat/finder'
require 'redistat/finder/date_set'
@@ -32,11 +33,12 @@
module Redistat
KEY_NEXT_ID = ".next_id"
KEY_EVENT = ".event:"
- KEY_LEBELS = "Redistat.lables:"
+ KEY_LEBELS = "Redistat.labels:" # used for reverse label hash lookup
KEY_EVENT_IDS = ".event_ids"
+ LABEL_INDEX = ".label_index:"
GROUP_SEPARATOR = "/"
class InvalidOptions < ArgumentError; end
class RedisServerIsTooOld < Exception; end