Skip to content
Snippets Groups Projects
Commit 6852ca56 authored by Alex Reisner's avatar Alex Reisner
Browse files

Allow cache back-end to provide #delete or #del.

parent 010cb808
No related branches found
No related tags found
No related merge requests found
......@@ -78,7 +78,8 @@ module Geocoder
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment