From a8e6a1b1ca5cbffde0159f38569aa710b7c541ed Mon Sep 17 00:00:00 2001 From: Simon Woker <github@simonwoker.de> Date: Fri, 25 Apr 2014 08:03:03 +0000 Subject: [PATCH] formatting --- README.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index e18941f6..9d7e16d6 100644 --- a/README.md +++ b/README.md @@ -660,10 +660,11 @@ By default the prefix is `geocoder:` If you need to expire cached content: - Geocoder::Lookup.get(Geocoder.config[:lookup]).cache.expire(:all) # expire cached results for current Lookup - Geocoder::Lookup.get(:google).cache.expire("http://...") # expire cached result for a specific URL - Geocoder::Lookup.get(:google).cache.expire(:all) # expire cached results for Google Lookup - # expire all cached results for all Lookups. Be aware that this methods spawns a new Lookup object for each Service + Geocoder::Lookup.get(Geocoder.config[:lookup]).cache.expire(:all) # expire cached results for current Lookup + Geocoder::Lookup.get(:google).cache.expire("http://...") # expire cached result for a specific URL + Geocoder::Lookup.get(:google).cache.expire(:all) # expire cached results for Google Lookup + # expire all cached results for all Lookups. + # Be aware that this methods spawns a new Lookup object for each Service Geocoder::Lookup.all_services.each{|service| Geocoder::Lookup.get(service).cache.expire(:all)} Do *not* include the prefix when passing a URL to be expired. Expiring `:all` will only expire keys with the configured prefix (won't kill every entry in your key/value store). -- GitLab