Skip to content

Need a way to drain the underlying redis connection pool #70

Open
@thenikso

Description

@thenikso

Hi there!

I'm using this amazing cache/cache store in an AWS lambda function and noticed that it was hanging open without terminating. I managed to fix this by doing something like this:

redisCache.store._pool.drain();

When my app is finished. Is this correct? Am I guaranteed that the cache entries have been written? (I don't wait for them when doing set).

If so I think there should be a better way to do this or at least a word about it in the readme.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions