1.1.12 • Published 8 years ago

redispool v1.1.12

Weekly downloads
4
License
MIT
Repository
github
Last release
8 years ago
const Pool = require('redispool/Pool');

var pool = new Pool({
  host: '127.0.0.1',
  port: 6379,
  maxConnections: 4,
});

// pop a client, for exclusive use, must call release()
pool.pop(function (err, client, release) {
  if (err) return;

  client.randomkey(function (err, key) {
    console.log('pool.pop', err, key);
    release();
  });
});

// get a client, which will be shared among other get()s
pool.get(function (err, client) {
  client.randomkey(function (err, key) {
    console.log('pool.get', err, key);
  });
});

enable_offline_queue set to false, as this could lead to serious problems with Pool.pop() return timeouts?

1.1.12

8 years ago

1.1.11

8 years ago

1.1.10

8 years ago

1.1.9

9 years ago

1.1.8

9 years ago

1.1.6

9 years ago

1.1.5

9 years ago

1.1.4

9 years ago

1.1.3

9 years ago

1.1.2

9 years ago

1.1.1

9 years ago

1.1.0

9 years ago

1.0.14

9 years ago

1.0.13

9 years ago

1.0.12

9 years ago

1.0.11

9 years ago

1.0.10

9 years ago

1.0.9

9 years ago

1.0.8

9 years ago

1.0.7

9 years ago

1.0.6

9 years ago

1.0.5

9 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago