README.md in distribute_reads-0.2.0 vs README.md in distribute_reads-0.2.1
- old
+ new
@@ -143,13 +143,21 @@
distribute_reads(primary: true) do
# ...
end
```
+## Reference
+
+Get replication lag
+
+```ruby
+DistributeReads.replication_lag
+```
+
## Thanks
-Thanks to [TaskRabbit](https://github.com/taskrabbit) for Makara and [Nick Elser](https://github.com/nickelser) for the write-through cache.
+Thanks to [TaskRabbit](https://github.com/taskrabbit) for Makara, [Sherin Kurian](https://github.com/sherinkurian) for the max lag option, and [Nick Elser](https://github.com/nickelser) for the write-through cache.
## History
View the [changelog](https://github.com/ankane/distribute_reads/blob/master/CHANGELOG.md)
@@ -159,5 +167,16 @@
- [Report bugs](https://github.com/ankane/distribute_reads/issues)
- Fix bugs and [submit pull requests](https://github.com/ankane/distribute_reads/pulls)
- Write, clarify, or fix documentation
- Suggest or add new features
+
+To test, run:
+
+```sh
+git clone https://github.com/ankane/distribute_reads.git
+cd distribute_reads
+createdb distribute_reads_test_primary
+createdb distribute_reads_test_replica
+bundle
+bundle exec rake
+```