class StatelyDB::CoreClient

def with_allow_stale(allow_stale)

Returns:
  • (self) - a new client with the allow_stale flag set

Parameters:
  • allow_stale (Boolean) -- whether to allow stale results
def with_allow_stale(allow_stale)
  new_client = clone
  new_client.instance_variable_set(:@allow_stale, allow_stale)
  new_client
end