lib/geocoder/cache.rb in geocoder-1.1.5 vs lib/geocoder/cache.rb in geocoder-1.1.6
- old
+ new
@@ -76,9 +76,10 @@
def interpret(value)
value == "" ? nil : value
end
def expire_single_url(url)
- store.del(key_for(url))
+ key = key_for(url)
+ store.respond_to?(:del) ? store.del(key) : store.delete(key)
end
end
end