question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support ability to disconnect from backend manually

See original GitHub issue

Following 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:closed
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
jaredwraycommented, May 1, 2022

@gnarea - This is currently being tracked in a pull request by @alphmth here: https://github.com/jaredwray/keyv/pull/307

0reactions
gnareacommented, May 10, 2022

This is fantastic! Thank you so much!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found