README.md in geocoder-1.7.0 vs README.md in geocoder-1.7.1
- old
+ new
@@ -244,12 +244,15 @@
# set default units to kilometers:
units: :km,
# caching (see Caching section below for details):
+ # warning: `cache_prefix` is deprecated, use `cache_options` instead
cache: Redis.new,
- cache_prefix: "..."
-
+ cache_options: {
+ expiration: 2.days, # Redis ttl
+ prefix: "..."
+ }
)
```
Please see [`lib/geocoder/configuration.rb`](https://github.com/alexreisner/geocoder/blob/master/lib/geocoder/configuration.rb) for a complete list of configuration options. Additionally, some lookups have their own special configuration options which are directly supported by Geocoder. For example, to specify a value for Google's `bounds` parameter: