diff --git a/examples/autoexpire_cache_redis.rb b/examples/autoexpire_cache_redis.rb index 1b67a9eee0febd18c6ba6c11cb35a3acfce18f2b..395a71e5e0206e1d8447999fee1dfcf0cf62b72a 100644 --- a/examples/autoexpire_cache_redis.rb +++ b/examples/autoexpire_cache_redis.rb @@ -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))