Commit Graph

38 Commits

Author SHA1 Message Date
b13da6f332 create a flush buffer #at_exit callback to ensure any buffered messages are flushed to Redis on process exit 2011-04-18 12:37:24 +01:00
3a25fcc788 created Redistat::Buffer, mainly feature complete, still needs a few more specs 2011-04-15 16:45:21 +01:00
a197a04ce8 moved all internal mixin modules to lib/redistat/mixins to tidy up the file structure a bit 2011-04-15 14:10:51 +01:00
5d92c1dbae created Redistat::Synchronize mixin to help with thread-safety 2011-04-15 14:03:26 +01:00
d5f79b82a9 somewhat better loading procedure 2011-03-12 21:59:52 +00:00
0938781cd1 extend ::Hash with #set_or_incr and #merge_and_incr methods 2011-03-12 21:47:54 +00:00
8001a98a26 fixed a typo... ffs... 2011-03-10 10:42:10 +00:00
57274ffb21 updated reverse label hash lookup storage format, which might be a pain if you have been using the hashed_label option 2011-03-10 00:46:55 +00:00
3a00353f83 created Options module to help organize the multiple options passed from one object to another 2011-03-10 00:24:35 +00:00
7a28d1210f added a todo item about a typo 2011-03-09 11:00:08 +00:00
d74dc41110 added label indexing features when using label groupings 2011-03-09 10:59:53 +00:00
7b1feda061 added key grouping for statistics Hash
Example:
store(“message”, {“count/private” => 1})
store(“message”, {“count/public” => 1})
fetch("message", 2.minutes.ago, Time.now)
  #=> { "count" => 2,
        "count/private" => 1,
        "count/public" => 1 }
2011-03-04 12:54:50 +00:00
Ariel Salomon
cab7ed5633 Fix for use with Active Support 2.3.x 2011-02-23 07:42:58 -08:00
776ee8ac97 make version available in code via
Redistat::VERSION
2011-01-12 16:11:19 +00:00
3b346e88e0 moved DateHelper module to it's own files for the
sake of transparency
2011-01-12 16:10:38 +00:00
89932759ef Merge branch 'master' of https://github.com/JamesHarrison/redistat into feature/ruby19 2010-12-29 16:42:50 +00:00
James Harrison
6a66605e0b Adds Ruby 1.9.2 compat (references to TimeExt#round collide with the new real Time#now, changed to TimeExt#beginning_of_closest), 3 specs failing relating to time equality testing 2010-12-28 23:46:25 +00:00
67dc9433c7 fixed typo in deprecation warning 2010-12-09 22:42:27 +00:00
dc162e0c89 initial work to being able to use per-model redis
configurations
2010-11-28 10:10:58 +00:00
62c3492c93 some whitespace cleanup 2010-11-24 00:36:44 +00:00
b554b617f2 Redistat::Result is now a HashWithIndifferentAccess
instead of a regular Hash
2010-11-22 12:22:56 +00:00
aaec15880c active_support/time is already required by time_ext 2010-11-22 12:22:18 +00:00
426f006426 actually require the collection file 2010-11-07 23:32:32 +00:00
24bf57000e * Redistat::Finder raises an InvalidOptions
exception if options are invalid.
* Separated Finder#find method into smaller parts.
2010-11-07 21:50:39 +00:00
9cab9647ce return result sets as a Redistat::Result object 2010-10-18 23:07:42 +01:00
44ea115ca7 cleaner code in Redistat::Finder 2010-10-18 00:58:11 +01:00
64b607e608 apply same active support fix as time_ext 2010-09-28 19:25:34 +03:00
be464ec298 Replaced KeySelection class with a more logical
Finder class.
2010-08-24 13:17:18 +03:00
3a46a2ae2e Redistat::KeySelection class and specs 2010-08-11 18:14:53 +03:00
51bdc73387 added jeweler, yard, and more to rakefile 2010-07-27 20:59:27 +03:00
805ef21af4 moved ruby core class extensions to separate files 2010-07-26 17:34:53 +03:00
1c818024e5 created Redistat::Summary object 2010-07-23 23:27:55 +03:00
0f11eb66e1 sorted requires alphabetically 2010-07-23 23:17:03 +03:00
9c9b784a8a lots of changes and cleanup, among others created
a Redistat::Scope object
2010-07-23 21:50:28 +03:00
c7c4e4345f Redistat::Event stores events 2010-07-20 03:00:45 +03:00
1daf8613dd added standard redis key name constants 2010-07-20 02:58:58 +03:00
6c9c3bf606 moved Time and Date overloads into date.rb 2010-07-19 10:07:49 +03:00
afd6265288 initial import 2010-07-19 01:06:45 +03:00