sir_cachealot 0.6.7 → 0.6.8
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.
- checksums.yaml +8 -8
- data/.gitignore +0 -0
- data/Gemfile +0 -0
- data/LICENSE.txt +0 -0
- data/README.md +0 -0
- data/Rakefile +0 -0
- data/lib/sir/backends/ram_cache.rb +0 -0
- data/lib/sir/backends/redis_cache.rb +2 -2
- data/lib/sir/version.rb +1 -1
- data/sircachealot.png +0 -0
- data/spec/redis_spec.rb +9 -0
- data/spec/sir_cachealot_spec.rb +9 -0
- data/spec/spec_helper.rb +0 -0
- metadata +2 -3
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
Y2Y3OTFjMmI2ZTBiNWY5N2VmODdlMmViM2JmYjlmNDljZGY5NmFjMw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YmM2MDUyYTI0YTM5YWM3ZjU4ZTU3MTNkODNkNGM2OTMzYWRlZTdlMw==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NTk2MDU3ZDU3MGUwNDA2YjQ5NWQxMzM3MjI3NTk3YmExOWY0MWU2YzA4YjU5
|
10
|
+
MDI2MmJjZjA0NGExMTk3MGNkZTU2YTY2ODliYWMwM2FkNzUyNTJjZGJjOGU3
|
11
|
+
NjBiZmY0NWQ4MzlkYTUxYjRlMGU0MTcxMDMwNDE2MDk2OGMzNjQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ODRhYTEzYzkzODg0OWM1MzNiY2VjZDJmMGU4MmE5ZWVhZDZlZGNjNjUwMGM3
|
14
|
+
YmRkNjcxZGU2ZjVlMjBjYmNkNTU4NmE3Y2FlNGQ5ZTIyZmExOGYyNzBhZmVj
|
15
|
+
MjFkNmM0MTI2ZjZiN2U1OWYyNGQ2MGJhZDBjNThhOTQwMzZkYmY=
|
data/.gitignore
CHANGED
File without changes
|
data/Gemfile
CHANGED
File without changes
|
data/LICENSE.txt
CHANGED
File without changes
|
data/README.md
CHANGED
File without changes
|
data/Rakefile
CHANGED
File without changes
|
File without changes
|
@@ -23,8 +23,8 @@ class Sir::Backends::RedisCache < Sir::Backends::Base
|
|
23
23
|
invalid = self.valid?({ key: key })
|
24
24
|
raise ArgumentError, invalid if invalid
|
25
25
|
|
26
|
-
|
27
|
-
got = @@redis.get(
|
26
|
+
nskey = self::nsed_key(key)
|
27
|
+
got = @@redis.get(nskey)
|
28
28
|
|
29
29
|
unless got.nil?
|
30
30
|
|
data/lib/sir/version.rb
CHANGED
data/sircachealot.png
CHANGED
File without changes
|
data/spec/redis_spec.rb
CHANGED
@@ -105,5 +105,14 @@ describe "SirCachealot Redis support" do
|
|
105
105
|
Sir.get(:expire).should == nil
|
106
106
|
end
|
107
107
|
|
108
|
+
it 'should return the same named key that it was given in event of a miss' do
|
109
|
+
key = :adadadadad
|
110
|
+
res = nil
|
111
|
+
Sir.get(key) do |k|
|
112
|
+
res = k
|
113
|
+
end
|
114
|
+
res.should == key
|
115
|
+
end
|
116
|
+
|
108
117
|
|
109
118
|
end
|
data/spec/sir_cachealot_spec.rb
CHANGED
@@ -101,5 +101,14 @@ describe 'SirCachealot Ram Cache and basic support' do
|
|
101
101
|
Sir.get(:delete_me).should == nil
|
102
102
|
end
|
103
103
|
|
104
|
+
it 'should return the same named key that it was given in event of a miss' do
|
105
|
+
key = :adadadadad
|
106
|
+
res = nil
|
107
|
+
Sir.get(key) do |k|
|
108
|
+
res = k
|
109
|
+
end
|
110
|
+
res.should == key
|
111
|
+
end
|
112
|
+
|
104
113
|
|
105
114
|
end
|
data/spec/spec_helper.rb
CHANGED
File without changes
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sir_cachealot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lyjia / Tom Corelis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-05-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: redis
|
@@ -107,4 +107,3 @@ test_files:
|
|
107
107
|
- spec/redis_spec.rb
|
108
108
|
- spec/sir_cachealot_spec.rb
|
109
109
|
- spec/spec_helper.rb
|
110
|
-
has_rdoc:
|