sohm 0.10.2 → 0.10.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sohm.rb +11 -1
- data/sohm.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f49300fcfd021ca24a5dcf0448b15e4e366ef77f
|
4
|
+
data.tar.gz: 21eb15dcf9e166c2b7ac570be355b92b7b015469
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 98c410d88efe8ed8906e2ce3b190f1920c22c4e952d47db394f8ad5211e814ae8ea24ccb559142416f962597bf1e3845125ac89470dc5812f90bd0ae682a2cb7
|
7
|
+
data.tar.gz: c2125b750e5812575f1029e5f0ef629deae0cdb8cec1db96abb2800df853b081b8c9b45cd43b4fc247bc546d78946abff98e706cb7b311153da6e83b60fe866c
|
data/lib/sohm.rb
CHANGED
@@ -500,6 +500,16 @@ module Sohm
|
|
500
500
|
defined?(@redis) ? @redis : Sohm.redis
|
501
501
|
end
|
502
502
|
|
503
|
+
def self.refresh_indices_inline=(refresh_indices_inline)
|
504
|
+
@refresh_indices_inline = refresh_indices_inline
|
505
|
+
end
|
506
|
+
|
507
|
+
def self.refresh_indices_inline
|
508
|
+
defined?(@refresh_indices_inline) ?
|
509
|
+
@refresh_indices_inline :
|
510
|
+
Sohm.refresh_indices_inline
|
511
|
+
end
|
512
|
+
|
503
513
|
def self.mutex
|
504
514
|
Sohm.mutex
|
505
515
|
end
|
@@ -1091,7 +1101,7 @@ module Sohm
|
|
1091
1101
|
sanitize_attributes(attributes).to_msgpack)
|
1092
1102
|
end
|
1093
1103
|
|
1094
|
-
if
|
1104
|
+
if model.refresh_indices_inline
|
1095
1105
|
refresh_indices
|
1096
1106
|
end
|
1097
1107
|
|
data/sohm.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = "sohm"
|
3
|
-
s.version = "0.10.
|
3
|
+
s.version = "0.10.3"
|
4
4
|
s.summary = %{Slim ohm for twemproxy-like system}
|
5
5
|
s.description = %Q{Slim ohm is a forked ohm that works with twemproxy-like redis system, only a limited set of features in ohm is supported}
|
6
6
|
s.authors = ["Xuejie Xiao"]
|