lib/moped/session.rb in moped-1.2.6 vs lib/moped/session.rb in moped-1.2.7
- old
+ new
@@ -175,9 +175,13 @@
# @option options [ Boolean ] :safe (false) Ensure writes are persisted.
# @option options [ Hash ] :safe Ensure writes are persisted with the
# specified safety level e.g., "fsync: true", or "w: 2, wtimeout: 5".
# @option options [ Symbol, String ] :database The database to use.
# @option options [ :strong, :eventual ] :consistency (:eventual).
+ # @option options [ Integer ] :max_retries The maximum number of attempts
+ # to retry an operation. (30)
+ # @option options [ Integer ] :retry_interval The time in seconds to retry
+ # connections to a secondary or primary after a failure. (1)
#
# @since 1.0.0
def initialize(seeds, options = {})
@cluster = Cluster.new(seeds, {})
@context = Context.new(self)