Skip to content

Use Redis UNLINK instead of Redis DEL #910

Closed
@HishamAli81

Description

@HishamAli81

ISSUE

Currently,@keyv/redis uses the DEL function to remove entries from the Redis cache. The issue with DEL is that it is blocking and can take longer the larger the key size, whereas UNLINK is non-blocking and perform the operation in O(1) for each key removed regardless of its size.

References:

PROPOSED SOLUTION

In @keyv/redis, modify the delete() and clear() functions to use UNLINK instead of DEL to improve performance.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions