README.md in geocoder-1.7.5 vs README.md in geocoder-1.8.0
- old
+ new
@@ -244,14 +244,13 @@
# 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_options: {
- expiration: 2.days, # Redis ttl
- prefix: "..."
+ expiration: 1.day, # Defaults to `nil`
+ prefix: "another_key:" # Defaults to `geocoder:`
}
)
```
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: