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.
@@ -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
- if cache[cache_key]
92
+ cache_value = cache_mgr.get(cache_key)
93
+ if cache_value
93
94
  puts "cache get - #{cache_key}"
94
- return cache_mgr.get(cache_key)
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
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.6
4
+ version: 0.6.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: