node-cache / node-cache

a node internal (in-memory) caching module

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Returns reference not copy

dotmilk opened this issue · comments

For instance fetching some seldom changing data from the db caching it, then applying i18n to the result, pollutes subsequent cache fetches for the plain english result to be translated into another language.

See version 2.2.0 for the solution

After the issue #30 i revoked the version 2.2.0 due to the breaking change and made a major release 3.0.0 that will do the clone by default, but with an option to disable it.

Thanks ^_^