index.js 424 B

12345678910111213
  1. const Pool = require("./lib/Pool");
  2. const Deque = require("./lib/Deque");
  3. const PriorityQueue = require("./lib/PriorityQueue");
  4. const DefaultEvictor = require("./lib/DefaultEvictor");
  5. module.exports = {
  6. Pool: Pool,
  7. Deque: Deque,
  8. PriorityQueue: PriorityQueue,
  9. DefaultEvictor: DefaultEvictor,
  10. createPool: function(factory, config) {
  11. return new Pool(DefaultEvictor, Deque, PriorityQueue, factory, config);
  12. }
  13. };