counter_server 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,3 @@
1
1
  module CounterServer
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
@@ -108,6 +108,9 @@ class RedisBackend
108
108
 
109
109
  def increment_by(group_name, key, increment_by)
110
110
  @redis_client.zincrby(group_name, increment_by, key)
111
+
112
+ # Expire all keys in one month.
113
+ @redis_client.expire(group_name, 60 * 60 * 24 * 30)
111
114
  end
112
115
  end
113
116
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: counter_server
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-04-26 00:00:00.000000000 Z
12
+ date: 2013-02-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: eventmachine
@@ -78,7 +78,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
78
78
  version: '0'
79
79
  requirements: []
80
80
  rubyforge_project: counter_server
81
- rubygems_version: 1.8.22
81
+ rubygems_version: 1.8.24
82
82
  signing_key:
83
83
  specification_version: 3
84
84
  summary: Counter Server -- listens for statsd-like counts and aggregates them in Redis