redis-cluster-client 0.3.8 → 0.3.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/redis_client/cluster/normalized_cmd_name.rb +4 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9570ec36f046f18840242eb63ede8e5bdf710e4a9a2d738b244bed46ea53530c
|
4
|
+
data.tar.gz: 5fd06dcf1f843e7f6151278400f33d45725c1ee1b8dcbf0afc6d72a00677c237
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c4b639bb180399c9d71bd054da5d10c03e93fafd4f595aa958dbec36d842a8b01da9449f5fe57f4c51a6088a99abc35fc2e6e5ec1605ba7058ecab8b05a9ebd
|
7
|
+
data.tar.gz: 50b5b38b74b9b79b9526af4f76fdf7b3a5b54a51ccf2a641c78039610478087cbb0452239454580288a66c580cdacb0277f6aaf14f2eb44c5804ae6f86607b3d
|
@@ -57,11 +57,12 @@ class RedisClient
|
|
57
57
|
end
|
58
58
|
|
59
59
|
def normalize(name)
|
60
|
-
return @cache[name] if @cache.key?(name)
|
60
|
+
return @cache[name] || name.to_s.downcase if @cache.key?(name)
|
61
61
|
return name.to_s.downcase if @mutex.locked?
|
62
62
|
|
63
|
-
|
64
|
-
@cache[name]
|
63
|
+
str = name.to_s.downcase
|
64
|
+
@mutex.synchronize { @cache[name] = str }
|
65
|
+
str
|
65
66
|
end
|
66
67
|
end
|
67
68
|
end
|