databasedotcom_additions 0.6.6 → 0.6.7
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.
- data/lib/databasedotcom_additions/client.rb +5 -4
- metadata +1 -1
@@ -87,11 +87,12 @@ module Databasedotcom
|
|
87
87
|
|
88
88
|
start_time = Time.now
|
89
89
|
|
90
|
-
if cache_mgr
|
90
|
+
if cache_mgr != nil
|
91
91
|
cache_key = "#{self.username}:#{soql}"
|
92
|
-
|
92
|
+
cache_value = cache_mgr.get(cache_key)
|
93
|
+
if cache_value
|
93
94
|
puts "cache get - #{cache_key}"
|
94
|
-
return
|
95
|
+
return cache_value
|
95
96
|
end
|
96
97
|
end
|
97
98
|
|
@@ -106,7 +107,7 @@ module Databasedotcom
|
|
106
107
|
resp['records'] = resp['records'].concat(next_resp['records'])
|
107
108
|
end
|
108
109
|
|
109
|
-
if cache_mgr
|
110
|
+
if cache_mgr != nil
|
110
111
|
puts "cache put - #{cache_key}"
|
111
112
|
cache_mgr.set(cache_key, resp.to_json)
|
112
113
|
end
|