0.2.0 • Published 11 years ago

ecad v0.2.0

Weekly downloads
235
License
-
Repository
github
Last release
11 years ago

Build Status

node.js client for AWS Elasticache Auto Discovery Endpoint

Description

Specify a list of Elasticache Auto Discovery Endpoints to this tiny TCP client and receive in response a list of Elasticache host nodes found by each of the Auto Discovery endpoints. The result will be an array of Elasticache nodes specified in host:port notation.

Usage

var Ecad = require('ecad');
var endpoints = [
  'my-elasticache-cluster-hostname1:11211',
  'my-elasticache-cluster-hostname2:11211'];
var client = new Ecad({endpoints: endpoints, timeout: 10000});
client.fetch(function(err, hosts) {
    if (err) throw err;
    console.log(hosts);
    // that's it.
});

Options

  • retries the number of times to retry connecting to each endpoint.
  • timeout timeout connection attempt after this many ms.
  • minTimeout minimum time to wait before retrying connection. Valid only if retries is not 0.
  • maxTimeout maximum time to wait before retrying connection. Valid only if retries is not 0.
0.2.0

11 years ago

0.1.3

11 years ago

0.1.1

11 years ago

0.1.0

11 years ago

0.0.4

11 years ago

0.0.3

11 years ago

0.0.1

11 years ago