Skip to content

Commit 692ab36

Browse files
committed
Add instructions to use db as storage
1 parent b70c6cd commit 692ab36

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

+7
Original file line numberDiff line numberDiff line change
@@ -511,6 +511,13 @@ If you store multiple sets of coordinates for each object, you can specify latit
511511
Venue.near("Paris", 50, latitude: :secondary_latitude, longitude: :secondary_longitude)
512512
```
513513

514+
Use ActiveRecord as cache
515+
-------------------------
516+
517+
This applies for ActiveRecord only, the default cache service is Redis, but we still can use Database instead, it is not
518+
recommended in usual cases, but you can still follow
519+
[this gist](https://gist.github.com/shqear93/4b07153b4ca7e4e4a41da492679f6c0e) to use databases as caching storage
520+
514521
### Distance and Bearing
515522

516523
When you run a geospatial query, the returned objects have two attributes added:

0 commit comments

Comments
 (0)