Skip to content
Snippets Groups Projects
Commit d14f68c7 authored by Eskil Olsen's avatar Eskil Olsen Committed by Alex Reisner
Browse files

Check if cache store uses read/write for functions.

In addition to checking for []/[]= and set/get, also check
for functions like read/write.
parent 431d729d
No related branches found
No related tags found
No related merge requests found
......@@ -15,6 +15,8 @@ module Geocoder
store[key_for(url)]
when store.respond_to?(:get)
store.get key_for(url)
when store.respond_to?(:read)
store.read key_for(url)
end
end
......@@ -27,6 +29,8 @@ module Geocoder
store[key_for(url)] = value
when store.respond_to?(:set)
store.set key_for(url), value
when store.respond_to?(:write)
store.write key_for(url), value
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