Sha256: 18a9b237d0317d78a6ce24a535324b2887c8f01f783b905024b98d5e5496429c
Contents?: true
Size: 1.47 KB
Versions: 1
Compression:
Stored size: 1.47 KB
Contents
require 'rubygems' require 'active_support' require 'active_support/hash_with_indifferent_access' if !Hash.respond_to?(:with_indifferent_access) # Active Support 2.x and 3.x require 'redis' require 'date' require 'time' require 'time_ext' require 'json' require 'digest/sha1' require 'redistat/collection' require 'redistat/connection' require 'redistat/database' require 'redistat/date' require 'redistat/date_helper' require 'redistat/event' require 'redistat/finder' require 'redistat/finder/date_set' 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/date' require 'redistat/core_ext/time' require 'redistat/core_ext/fixnum' require 'redistat/core_ext/bignum' module Redistat KEY_NEXT_ID = ".next_id" KEY_EVENT = ".event:" KEY_LEBELS = "Redistat.lables:" KEY_EVENT_IDS = ".event_ids" 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
redistat-0.0.8 | lib/redistat.rb |