lib/connect-memcached.js
function MemcachedStore(options) {
    options = options || {};
    Store.call(this, options);

    this.prefix = options.prefix || "";
    this.ttl = options.ttl;
    if (!options.client) {
      if (!options.hosts) {
        options.hosts = "127.0.0.1:11211";
      }
      if (options.secret) {
        (this.crypto = require("crypto")), (this.secret = options.secret);
      }
      if (options.algorithm) {
        this.algorithm = options.algorithm;
      }

      options.client = new Memcached(options.hosts, options);
    }

    this.client = options.client;
  }
function MemcachedStore(options) {
    options = options || {};
    Store.call(this, options);

    this.prefix = options.prefix || "";
    this.ttl = options.ttl;
    if (!options.client) {
      if (!options.hosts) {
        options.hosts = "127.0.0.1:11211";
      }
      if (options.secret) {
        (this.crypto = require("crypto")), (this.secret = options.secret);
      }
      if (options.algorithm) {
        this.algorithm = options.algorithm;
      }

      options.client = new Memcached(options.hosts, options);
    }

    this.client = options.client;
  }
function MemcachedStore ( options ) { options = options || { } ; Store . call ( this , options ) ; this . prefix = options . prefix || "" ; this . ttl = options . ttl ; if ( ! options . client ) { if ( ! options . hosts ) { options . hosts = "127.0.0.1:11211" ; } if ( options . secret ) { ( this . crypto = require ( "crypto" ) ) , ( this . secret = options . secret ) ; } if ( options . algorithm ) { this . algorithm = options . algorithm ; } options . client = new Memcached ( options . hosts , options ) ; } this . client = options . client ; }
Initialize MemcachedStore with the given `options`.

@param {Object} options
@api public
Initialize MemcachedStore with the given options .