We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, Thanks for this , I use this for socket.io, but i found that the connection not release, may i know how can i release connection after used?
My code before
const db = function () { const redisOptions = {}; const cacheOptions = { expire: 2629746,// seconds, defaults to 30 days keyPrefix: "sql.", // default hashType: HashTypes.blake2b512, //default caching: Caching.SKIP //default }; const pool = mysql.createPool({ connectionLimit: 2, host: env.DB_HOST, user: env.DB_USERNAME, password: env.DB_PASSWORD, database: env.DB_DATABASE }).promise(); const redis = asyncRedis.createClient(); return new MysqlRedisAsync( pool, redis, cacheOptions ); } [data, fields] = db.query('SELECT * FROM USERS'); console.log(data)
Thanks
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi,
Thanks for this ,
I use this for socket.io, but i found that the connection not release, may i know how can i release connection after used?
My code before
Thanks
The text was updated successfully, but these errors were encountered: