Accessor_Singleton
A instance pool for node.js Accessor module
Install
- npm install Accessor_Singleton
Usage
-
Replace original module require statement from
var Accessor = require("Accessor");
to
var Accessor = require("Accessor_Singleton")
- Then, everytime you call the Acessor, it will check if there had been an instance (avoid connnect to server everytime)