Skip to content

Map vs. Hash #212

@rdy

Description

@rdy

The internal data structure used by node-cache uses {} it seems that using a Map might be a better choice especially when there are a large amount of key/value pairs, along with TTI expiration.

It looks like it would be pretty straightforward to use Map instead of {}, and could perform better in js environments that have improved the native Map implementation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions