Skip to content

Commit 19f3cd1

Browse files
authored
Merge pull request #1607 from shqear93/feature/update-readme-use-db-as-storage
Update `README.md` file, use DB as storage
2 parents 04ee293 + dbcc454 commit 19f3cd1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,9 @@ Geocoder::Lookup.all_services.each{|service| Geocoder::Lookup.get(service).cache
375375

376376
Do *not* include the prefix when passing a URL to be expired. Expiring `:all` will only expire keys with the configured prefix -- it will *not* expire every entry in your key/value store.
377377

378+
In addition to conventional cache stores like Redis, it's possible to keep your cache in the database using `ActiveRecord`. For example see [this gist](https://gist.github.com/shqear93/4b07153b4ca7e4e4a41da492679f6c0e).
379+
380+
378381
_Before you implement caching in your app please be sure that doing so does not violate the Terms of Service for your geocoding service._
379382

380383
Not all services support caching, [check the service limitations in the API guide for more information](https://github.com/alexreisner/geocoder/blob/master/README_API_GUIDE.md).

0 commit comments

Comments
 (0)