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.
@@ -87,9 +87,10 @@ module Databasedotcom
87
87
 
88
88
  start_time = Time.now
89
89
 
90
- if cache_mgr != nil
91
- cache_key = "#{self.username}:#{soql}"
92
- cache_value = cache_mgr.get(cache_key)
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: databasedotcom_additions
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.7
4
+ version: 0.6.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: