Support ability to disconnect from backend manually
See original GitHub issueFollowing up on the conversation on #131, I’m using keyv from a one-off script and the Node.js process hangs because there’s an open socket.
I’m having to (partly) work around this by doing the following:
const redis = (this.keyv.opts.store as KeyvRedis).redis;
redis?.disconnect();
… which isn’t ideal because my code is now Redis-aware and would still break when we support additional backends.
@jaredwray mentioned there’s some interest in implementing Keyv.disconnect()
, which would cause the underlying backend to disconnect from the server. That would solve this problem.
Issue Analytics
- State:
- Created a year ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
How to disconnect specified client from outside hub #5333
Modifying the client and changing any client-side disconnection logic in order to ignore the requested disconnect from the server is trivial.
Read more >Delete an AWS Amplify application
The application is deleted from the Amplify console last. The CloudFormation stack deletes all of the application's associated backend resources ...
Read more >Methods to Attach Disconnected Entities in EF 6
First, we need to attach entities with the new context instance and make the context aware about these entities. Second, set an appropriate...
Read more >Disconnect Block - Genesys Documentation
The Disconnect block returns values (a list of variables) back to the calling context, such as a CCXML application. · The Disconnect block...
Read more >Offering account deletion in your app - Support
Ensure any automatic account creation in your app complies with local laws where your app is available. I manually delete user accounts and...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@gnarea - This is currently being tracked in a pull request by @alphmth here: https://github.com/jaredwray/keyv/pull/307
This is fantastic! Thank you so much!