Skip to content

Commit

Permalink
Merge pull request #45 from bmxpert1/master
Browse files Browse the repository at this point in the history
Correct inactivity check example
  • Loading branch information
mloughran committed Nov 11, 2015
2 parents cae1c86 + e7435fe commit 0fb3fb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ Sometimes a network connection may hang in ways which are difficult to detect or

To start an application layer ping-pong mechanism for testing connection liveness, call the following at any time on a client:

redis.configure_inactivity_timeout(5, 3)
redis.configure_inactivity_check(5, 3)

This configures a `PING` command to be sent if 5 seconds elapse without receiving any data from the server, and a reconnection to be triggered if a futher 3 seconds elapse after the `PING` is submitted.

Expand Down

0 comments on commit 0fb3fb3

Please sign in to comment.