Skip to content

deleteOnExpire: false appears to be ignored in version 5 #154

@fielding-wilson

Description

@fielding-wilson

Hi,

I have defined my cache as follows:
const cache = new NodeCache({deleteOnExpire: false})

For testing purposes, I store a key with a ttl of 60:
cache.set(key, data, 60)

In 4.2.1, I am still able to get the key after 1 minute. In 5.0.0 and 5.0.1, I get undefined when trying to get the key after 1 minute.

Thanks for your help

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions