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

Update based on changes to redis-rb gem v4.0.

[] and []= methods were removed.
parent fa54d4dd
No related branches found
No related tags found
No related merge requests found
......@@ -8,11 +8,11 @@ class AutoexpireCacheRedis
end
def [](url)
@store.[](url)
@store.get(url)
end
def []=(url, value)
@store.[]=(url, value)
@store.set(url, value)
@store.expire(url, @ttl)
end
......@@ -25,4 +25,4 @@ class AutoexpireCacheRedis
end
end
Geocoder.configure(:cache => AutoexpireCacheRedis.new(Redis.new))
\ No newline at end of file
Geocoder.configure(:cache => AutoexpireCacheRedis.new(Redis.new))
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