Sha256: cc41f6fa813e10671953f01c17b959a63b20e120711e20443e5e0f706dc1f635
Contents?: true
Size: 1.51 KB
Versions: 5
Compression:
Stored size: 1.51 KB
Contents
require 'rubygems' require 'date' require 'time' require 'digest/sha1' # Active Support 2.x or 3.x require 'active_support' if !{}.respond_to?(:with_indifferent_access) require 'active_support/core_ext/hash/indifferent_access' require 'active_support/core_ext/hash/reverse_merge' end require 'time_ext' require 'redis' require 'json' 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/key' require 'redistat/label' require 'redistat/model' require 'redistat/result' require 'redistat/scope' require 'redistat/summary' require 'redistat/version' require 'redistat/core_ext' module Redistat KEY_NEXT_ID = ".next_id" KEY_EVENT = ".event:" KEY_LABELS = "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 class << self def connection(ref = nil) Connection.get(ref) end alias :redis :connection def connection=(connection) Connection.add(connection) end alias :redis= :connection= def connect(options) Connection.create(options) end def flush puts "WARNING: Redistat.flush is deprecated. Use Redistat.redis.flushdb instead." connection.flushdb end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
redistat-0.2.6 | lib/redistat.rb |
redistat-0.2.5 | lib/redistat.rb |
redistat-0.2.4 | lib/redistat.rb |
redistat-0.2.3 | lib/redistat.rb |
redistat-0.2.2 | lib/redistat.rb |