cache-backend-iron-cache 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md
CHANGED
@@ -13,7 +13,7 @@ describe Cache::Backend::IronCache do
|
|
13
13
|
# that's ok
|
14
14
|
end
|
15
15
|
@client.get('a-key').must_be_nil
|
16
|
-
@client.set('a-key', 'some info')
|
16
|
+
@client.set('a-key', 'some info').must_equal('some info')
|
17
17
|
@client.get('a-key').must_equal('some info')
|
18
18
|
|
19
19
|
@ironcache.get('a-key').value.must_equal(JSON.dump("value" => "some info"))
|
@@ -36,4 +36,13 @@ describe Cache::Backend::IronCache do
|
|
36
36
|
@client.set('a-key', 34.546)
|
37
37
|
@client.get('a-key').must_equal(34.546)
|
38
38
|
end
|
39
|
+
|
40
|
+
it "can fetch stuff" do
|
41
|
+
@client.set(['bla', 0], nil)
|
42
|
+
@client.fetch(['bla', 0]) do
|
43
|
+
"Hello"
|
44
|
+
end.must_equal "Hello"
|
45
|
+
|
46
|
+
@client.get(['bla', 0]).must_equal('Hello')
|
47
|
+
end
|
39
48
|
end
|