databasedotcom_additions 0.6.6 → 0.6.7
Sign up to get free protection for your applications and to get access to all the features.
- 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
|