rails_redis_cache 0.0.3 → 0.0.4
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.
- data/CHANGELOG +18 -0
- data/lib/rails_redis_cache.rb +4 -4
- metadata +12 -12
data/CHANGELOG
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
0.0.4
|
2
|
+
|
3
|
+
* less restrictive dependencies with '~>'
|
4
|
+
* use bundler for dependency management
|
5
|
+
* switching development to 'develop' branch
|
6
|
+
* add real git tags for releases
|
7
|
+
|
8
|
+
0.0.3
|
9
|
+
|
10
|
+
* provide fix for edge-case when redis did not store the time-key properly
|
11
|
+
|
12
|
+
0.0.2
|
13
|
+
|
14
|
+
* adapt edge rails (3.RC) cache store impl, that uses options for initialization
|
15
|
+
|
16
|
+
0.0.1
|
17
|
+
|
18
|
+
* basic implementation of cache store
|
data/lib/rails_redis_cache.rb
CHANGED
@@ -4,7 +4,7 @@ require 'redis'
|
|
4
4
|
require 'time'
|
5
5
|
|
6
6
|
module ActiveSupport
|
7
|
-
module Cache
|
7
|
+
module Cache
|
8
8
|
|
9
9
|
# RailsRedisCache is Rails 3 cache store implementation using the key value store Redis.
|
10
10
|
#
|
@@ -57,12 +57,12 @@ module ActiveSupport
|
|
57
57
|
end
|
58
58
|
|
59
59
|
def decrement(name, amount = 1, options = nil)
|
60
|
-
|
60
|
+
increment(name, amount * -1, options)
|
61
61
|
end
|
62
62
|
|
63
63
|
def cleanup(options = nil)
|
64
|
-
|
65
|
-
|
64
|
+
value_keys = @redis.keys("#{VALUE_PREF}_*")
|
65
|
+
time_keys = @redis.keys("#{TIME_PREF}_*")
|
66
66
|
@redis.del *(value_keys + time_keys)
|
67
67
|
end
|
68
68
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_redis_cache
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 23
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 4
|
10
|
+
version: 0.0.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- "Peter Schr\xC3\xB6der"
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-
|
18
|
+
date: 2010-10-28 00:00:00 +02:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -24,15 +24,14 @@ dependencies:
|
|
24
24
|
requirement: &id001 !ruby/object:Gem::Requirement
|
25
25
|
none: false
|
26
26
|
requirements:
|
27
|
-
- -
|
27
|
+
- - ~>
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
hash:
|
29
|
+
hash: 7
|
30
30
|
segments:
|
31
31
|
- 3
|
32
32
|
- 0
|
33
33
|
- 0
|
34
|
-
|
35
|
-
version: 3.0.0.beta
|
34
|
+
version: 3.0.0
|
36
35
|
type: :runtime
|
37
36
|
version_requirements: *id001
|
38
37
|
- !ruby/object:Gem::Dependency
|
@@ -41,7 +40,7 @@ dependencies:
|
|
41
40
|
requirement: &id002 !ruby/object:Gem::Requirement
|
42
41
|
none: false
|
43
42
|
requirements:
|
44
|
-
- -
|
43
|
+
- - ~>
|
45
44
|
- !ruby/object:Gem::Version
|
46
45
|
hash: 15
|
47
46
|
segments:
|
@@ -51,7 +50,7 @@ dependencies:
|
|
51
50
|
version: 2.0.0
|
52
51
|
type: :runtime
|
53
52
|
version_requirements: *id002
|
54
|
-
description: Rails cache store implementation using Redis.
|
53
|
+
description: Rails 3 cache store implementation using Redis.
|
55
54
|
email: phoetmail@googlemail.com
|
56
55
|
executables: []
|
57
56
|
|
@@ -62,6 +61,7 @@ extra_rdoc_files: []
|
|
62
61
|
files:
|
63
62
|
- lib/rails_redis_cache.rb
|
64
63
|
- README.rdoc
|
64
|
+
- CHANGELOG
|
65
65
|
- test/test_helper.rb
|
66
66
|
- test/test_rails_redis_cache.rb
|
67
67
|
has_rdoc: true
|
@@ -95,11 +95,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
95
95
|
version: "0"
|
96
96
|
requirements: []
|
97
97
|
|
98
|
-
rubyforge_project:
|
98
|
+
rubyforge_project: http://github.com/phoet/rails_redis_cache
|
99
99
|
rubygems_version: 1.3.7
|
100
100
|
signing_key:
|
101
101
|
specification_version: 3
|
102
|
-
summary: Rails cache store implementation using Redis.
|
102
|
+
summary: Rails 3 cache store implementation using Redis. See http://github.com/phoet/rails_redis_cache for more information.
|
103
103
|
test_files:
|
104
104
|
- test/test_helper.rb
|
105
105
|
- test/test_rails_redis_cache.rb
|