Last 12 weeks · 0 commits
1 of 6 standards met
Repository: tj/nedis. Description: Redis server implementation written with nodejs Stars: 132, Forks: 20. Primary language: JavaScript. Languages: JavaScript (100%). Open PRs: 0, open issues: 7. Last activity: 14y ago. Community health: 28%. Top contributors: tj, aheckmann, grumdrig, janpieper.
Just realized my favorite redis client needs multi support. Any tips on how to implement it myself?
I discovered a problem, where in out testsuite I'm sending a QUIT (in a test-teardown function) to close the client's connection. If there are outstanding responses from other requests to nedis, you'll see: The problem is, that in connection.js (e.g. https://github.com/visionmedia/nedis/blob/master/lib/connection.js#L152) it is not checked, if the stream is writable or not. I'd like to supply a patch for this problem, but I'd also like to know how you would like it to be solved. Is it correct to just call a wrapper function that will first check before actually doing ? Are there any bad tradeoffs I'm not seeing yet? Best Sebastian
One-liner to have TTL return seconds instead of milliseconds.