Module: Metricstore

Defined in:
lib/metricstore.rb,
lib/metricstore/client.rb,
lib/metricstore/updater.rb,
lib/metricstore/version.rb,
lib/metricstore/inserter.rb,
lib/metricstore/exceptions.rb,
lib/metricstore/incrementer.rb,
lib/metricstore/hyper_log_log.rb,
lib/metricstore/range_updater.rb,
lib/metricstore/monkey_patches.rb,
lib/metricstore/couchbase_client.rb,
lib/metricstore/count_incrementer.rb,
lib/metricstore/mock_key_value_client.rb

Defined Under Namespace

Modules: AllCombinations, HyperLogLog Classes: Client, CouchbaseClient, CountIncrementer, DataLossError, Incrementer, Inserter, MockKeyValueClient, RangeUpdater, Updater

Constant Summary collapse

VERSION =
"0.1.0"

Class Method Summary collapse

Class Method Details

.couchbase(*args, &callback) ⇒ Object



16
17
18
19
20
21
22
23
24
25
# File 'lib/metricstore.rb', line 16

def self.couchbase(*args, &callback)
  couchbase_client = CouchbaseClient.new(*args, &callback)
  Client.new(
    :kvstore => couchbase_client,
    :sleep_interval => 0.1,
    :max_healthy_errors => 2,
    :max_unhandled_errors => 8,
    :max_retry_delay_in_seconds => 60.0
  )
end