with_connection 0.1.12 → 0.1.13
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/active_support/cache/memcache_connection_pool.rb +7 -7
- data/with_connection.gemspec +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.13
|
@@ -9,31 +9,31 @@ module ActiveSupport
|
|
9
9
|
|
10
10
|
def fetch(name, options=nil)
|
11
11
|
with_connection do
|
12
|
-
connection.fetch
|
12
|
+
options ? connection.fetch(name, options) : connection.fetch(name)
|
13
13
|
end
|
14
14
|
end
|
15
15
|
|
16
16
|
def read(name, options=nil)
|
17
17
|
with_connection do
|
18
|
-
connection.read
|
18
|
+
options ? connection.read(name, options) : connection.read(name)
|
19
19
|
end
|
20
20
|
end
|
21
21
|
|
22
22
|
def write(name, value, options=nil)
|
23
23
|
with_connection do
|
24
|
-
connection.write
|
24
|
+
options ? connection.write(name, value, options) : connection.write(name, value)
|
25
25
|
end
|
26
26
|
end
|
27
27
|
|
28
28
|
def exist?(name, options=nil)
|
29
29
|
with_connection do
|
30
|
-
connection.exist?
|
30
|
+
options ? connection.exist?(name, options) : connection.exist?(name)
|
31
31
|
end
|
32
32
|
end
|
33
33
|
|
34
34
|
def delete(name, options=nil)
|
35
35
|
with_connection do
|
36
|
-
connection.delete
|
36
|
+
options ? connection.delete(name, options) : connection.delete(name)
|
37
37
|
end
|
38
38
|
end
|
39
39
|
|
@@ -45,13 +45,13 @@ module ActiveSupport
|
|
45
45
|
|
46
46
|
def increment(name, amount = 1, options=nil)
|
47
47
|
with_connection do
|
48
|
-
connection.increment
|
48
|
+
options ? connection.increment(name, amount, options) : connection.increment(name, amount)
|
49
49
|
end
|
50
50
|
end
|
51
51
|
|
52
52
|
def decrement(name, amount = 1, options=nil)
|
53
53
|
with_connection do
|
54
|
-
connection.decrement
|
54
|
+
options ? connection.decrement(name, amount, options) : connection.decrement(name, amount)
|
55
55
|
end
|
56
56
|
end
|
57
57
|
|
data/with_connection.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: with_connection
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.13
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -114,7 +114,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
114
114
|
version: '0'
|
115
115
|
segments:
|
116
116
|
- 0
|
117
|
-
hash:
|
117
|
+
hash: -2015607905547748004
|
118
118
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
119
119
|
none: false
|
120
120
|
requirements:
|