databasedotcom_additions 0.6.7 → 0.6.8
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 +6 -5
- metadata +1 -1
@@ -87,9 +87,10 @@ module Databasedotcom
|
|
87
87
|
|
88
88
|
start_time = Time.now
|
89
89
|
|
90
|
-
|
91
|
-
|
92
|
-
|
90
|
+
cache_key = "#{self.username}:#{soql}"
|
91
|
+
|
92
|
+
if self.cache_mgr != nil
|
93
|
+
cache_value = self.cache_mgr.get(cache_key)
|
93
94
|
if cache_value
|
94
95
|
puts "cache get - #{cache_key}"
|
95
96
|
return cache_value
|
@@ -107,9 +108,9 @@ module Databasedotcom
|
|
107
108
|
resp['records'] = resp['records'].concat(next_resp['records'])
|
108
109
|
end
|
109
110
|
|
110
|
-
if cache_mgr != nil
|
111
|
+
if self.cache_mgr != nil
|
111
112
|
puts "cache put - #{cache_key}"
|
112
|
-
cache_mgr.set(cache_key, resp.to_json)
|
113
|
+
self.cache_mgr.set(cache_key, resp.to_json)
|
113
114
|
end
|
114
115
|
|
115
116
|
elapsed_time = Time.now - start_time
|