1.1.12 • Published 7 years ago

redispool v1.1.12

Weekly downloads
4
License
MIT
Repository
github
Last release
7 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

7 years ago

1.1.11

7 years ago

1.1.10

7 years ago

1.1.9

7 years ago

1.1.8

7 years ago

1.1.6

8 years ago

1.1.5

8 years ago

1.1.4

8 years ago

1.1.3

8 years ago

1.1.2

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.14

8 years ago

1.0.13

8 years ago

1.0.12

8 years ago

1.0.11

8 years ago

1.0.10

8 years ago

1.0.9

8 years ago

1.0.8

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago